1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

misc: make some plugin speak dirtyconfig, saving a few roundtrips.

This commit is contained in:
Diego Elio Pettenò 2012-11-11 16:56:21 -08:00
parent b7e6b69bd9
commit 060ddd51f2
3 changed files with 9 additions and 3 deletions

View file

@ -158,8 +158,10 @@ END
}
}
unless ( $ENV{MUNIN_CAP_DIRTYCONFIG} == 1 ) {
exit 0;
}
}
foreach my $type (keys %sensors) {
# don't print anything if no value is found

View file

@ -173,8 +173,10 @@ END
}
}
unless ( $ENV{MUNIN_CAP_DIRTYCONFIG} == 1 ) {
exit 0;
}
}
foreach my $type (keys %sensors) {
# don't print anything if no value is found

View file

@ -103,8 +103,10 @@ phase$phaseIndex.critical $phaseData->{$phaseIndex}->{'overloadThreshold'}
END
}
unless ( $ENV{MUNIN_CAP_DIRTYCONFIG} == 1 ) {
exit 0;
}
}
my $phasesLoad = $session->get_entries(-columns => [$oidPhaseLoad]);