2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Support warning and critical

This commit is contained in:
Stig Sandbeck Mathisen 2013-01-23 10:26:54 +01:00 committed by Stig Sandbeck Mathisen
parent e4f5983339
commit 32bee48e0d

View File

@ -164,6 +164,10 @@ for (my $host_i = 0; $host_i < @host_addrs; ++$host_i) {
my $h_norm_name = clean_fieldname($h_cur_name);
if ($config_mode) {
print "$h_norm_name.min 0\n$h_norm_name.label $h_cur_name\n$h_norm_name.draw LINE2\n";
my ( $warning, $critical ) =
get_thresholds($h_norm_name);
printf "%s.warning %s\n", $h_norm_name, $warning;
printf "%s.critical %s\n", $h_norm_name, $critical;
} else {
my $pid = $fork ? fork() : -1;
if ($pid <= 0) {