1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 10:39:53 +00:00

dhcp-pool: increase warning limit to 90

DHCP pools grow very slowly. Warning at 75 is way too early, 90 seems
to be good value.

Also return pools at sorted order.
This commit is contained in:
Kim B. Heino 2021-04-01 16:38:22 +03:00 committed by Lars Kruse
parent 43f5d31c21
commit bc998e2007

View file

@ -66,11 +66,11 @@ elsif ( defined $ARGV[0] and $ARGV[0] eq "config" ) {
%pools = determine_pools();
# Print a label for each pool
foreach $start (keys %pools) {
foreach $start (sort (keys %pools)) {
$label = ip2string($start);
$label =~ s/\./\_/g;
print "_$label.label Pool " . ip2string($start) . " - " . ip2string($start + $pools{$start} - 1) . "\n";
print "_$label.warning 75\n";
print "_$label.warning 90\n";
print "_$label.critical 100\n";
}
}