diff --git a/plugins/dhcp/dhcp-pool b/plugins/dhcp/dhcp-pool index 4f665c4b..42868054 100755 --- a/plugins/dhcp/dhcp-pool +++ b/plugins/dhcp/dhcp-pool @@ -69,9 +69,9 @@ elsif ( defined $ARGV[0] and $ARGV[0] eq "config" ) { foreach $start (keys %pools) { $label = ip2string($start); $label =~ s/\./\_/g; - print "$label.label Pool ".ip2string($start)."\n"; - print "$label.warning 75\n"; - print "$label.critical 100\n"; + print "_$label.label Pool " . ip2string($start) . " - " . ip2string($start + $pools{$start} - 1) . "\n"; + print "_$label.warning 75\n"; + print "_$label.critical 100\n"; } } else { @@ -96,7 +96,7 @@ else { } $label = ip2string($start); $label =~ s/\./\_/g; - print "$label.value ".sprintf("%.1f", 100*($size-$free)/$size)."\n"; + print "_$label.value ".sprintf("%.1f", 100*($size-$free)/$size)."\n"; } }