Subject: | Some check doesn't need thresholds |
Some checks produces perfdata only, no thresholds.
Patch :
---
/usr/local/share/perl/5.10.1/JMX/Jmx4Perl/Nagios/CheckJmx4Perl.pm.old
2012-06-21 11:23:33.000000000 +0200
+++ /usr/local/share/perl/5.10.1/JMX/Jmx4Perl/Nagios/CheckJmx4Perl.pm
2012-07-16 15:03:05.000000000 +0200
@@ -287,8 +287,8 @@
my $check = shift;
my $name = shift;
my $np = $self->{np};
- $self->nagios_die("At least a critical or warning threshold must be
given " . $name)
- if ((!defined($check->critical) && !defined($check->warning)));
+# $self->nagios_die("At least a critical or warning threshold must
be given " . $name)
+# if ((!defined($check->critical) && !defined($check->warning)));
}
# Extract one or more check configurations which can be