mirror of https://github.com/mikaku/Monitorix.git
Merge branch 'patch-1' of github.com:k3a/Monitorix into k3a-patch-1
This commit is contained in:
commit
bd911ff72f
|
@ -142,7 +142,7 @@ sub nginx_update {
|
|||
my $val;
|
||||
open(IN, "iptables -nxvL INPUT |");
|
||||
while(<IN>) {
|
||||
if(/ nginx_IN /) {
|
||||
if(/ monitorix_nginx_IN /) {
|
||||
(undef, $val) = split(' ', $_);
|
||||
chomp($val);
|
||||
$in = $val - ($config->{nginx_hist}->{'in'} || 0);
|
||||
|
@ -155,7 +155,7 @@ sub nginx_update {
|
|||
close(IN);
|
||||
open(IN, "iptables -nxvL OUTPUT |");
|
||||
while(<IN>) {
|
||||
if(/ nginx_IN /) {
|
||||
if(/ monitorix_nginx_IN /) {
|
||||
(undef, $val) = split(' ', $_);
|
||||
chomp($val);
|
||||
$out = $val - ($config->{nginx_hist}->{'out'} || 0);
|
||||
|
|
Loading…
Reference in New Issue