mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +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:
parent
43f5d31c21
commit
bc998e2007
1 changed files with 2 additions and 2 deletions
|
@ -66,11 +66,11 @@ elsif ( defined $ARGV[0] and $ARGV[0] eq "config" ) {
|
||||||
%pools = determine_pools();
|
%pools = determine_pools();
|
||||||
|
|
||||||
# Print a label for each pool
|
# Print a label for each pool
|
||||||
foreach $start (keys %pools) {
|
foreach $start (sort (keys %pools)) {
|
||||||
$label = ip2string($start);
|
$label = ip2string($start);
|
||||||
$label =~ s/\./\_/g;
|
$label =~ s/\./\_/g;
|
||||||
print "_$label.label Pool " . ip2string($start) . " - " . ip2string($start + $pools{$start} - 1) . "\n";
|
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";
|
print "_$label.critical 100\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue