mirror of https://github.com/mikaku/Monitorix.git
fixed a bug in 'nginx.pm' introduced when added support of 'ss' command
This commit is contained in:
parent
6ead94fc88
commit
23672e5ef2
|
@ -581,7 +581,7 @@ sub nginx_cgi {
|
||||||
if($config->{os} eq "Linux") {
|
if($config->{os} eq "Linux") {
|
||||||
my $cmd = $nginx->{cmd} || "";
|
my $cmd = $nginx->{cmd} || "";
|
||||||
if(!$cmd || $cmd eq "ss") {
|
if(!$cmd || $cmd eq "ss") {
|
||||||
open(IN, "ss -nl --$pp |");
|
open(IN, "ss -nl --tcp |");
|
||||||
while(<IN>) {
|
while(<IN>) {
|
||||||
(undef, undef, undef, $pnum) = split(' ', $_);
|
(undef, undef, undef, $pnum) = split(' ', $_);
|
||||||
chomp($pnum);
|
chomp($pnum);
|
||||||
|
|
Loading…
Reference in New Issue