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:
parent
e4f5983339
commit
32bee48e0d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user