mirror of https://github.com/mikaku/Monitorix.git
removed the -H parameter from the 'ss' commands in order improve compatibility accross different Linux distributions. #196
This commit is contained in:
parent
85955397c8
commit
5459bca836
|
@ -180,7 +180,7 @@ sub netstat_update {
|
|||
|
||||
if($config->{os} eq "Linux") {
|
||||
if (`which ss`) {
|
||||
if(open(IN, "ss -Hna -f inet |")) {
|
||||
if(open(IN, "ss -na -f inet |")) {
|
||||
while(<IN>) {
|
||||
m/^(\S+)\s+(\S+)/;
|
||||
my $proto = $1 || '';
|
||||
|
@ -204,7 +204,7 @@ sub netstat_update {
|
|||
}
|
||||
close(IN);
|
||||
}
|
||||
if(open(IN, "ss -Hna -f inet6 |")) {
|
||||
if(open(IN, "ss -na -f inet6 |")) {
|
||||
while(<IN>) {
|
||||
m/^(\S+)\s+(\S+)/;
|
||||
my $proto = $1 || '';
|
||||
|
|
Loading…
Reference in New Issue