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") {
|
||||
my $cmd = $nginx->{cmd} || "";
|
||||
if(!$cmd || $cmd eq "ss") {
|
||||
open(IN, "ss -nl --$pp |");
|
||||
open(IN, "ss -nl --tcp |");
|
||||
while(<IN>) {
|
||||
(undef, undef, undef, $pnum) = split(' ', $_);
|
||||
chomp($pnum);
|
||||
|
|
Loading…
Reference in New Issue