Skip Menu |

This queue is for tickets about the jmx4perl CPAN distribution.

Report information
The Basics
Id: 78400
Status: resolved
Priority: 0/
Queue: jmx4perl

People
Owner: Nobody in particular
Requestors: pierre.denoblens [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
Thanks for pointing that out. It has been already fixed for 1.06 (october 2012), sorry for the delay.

On Mon Jul 16 09:11:51 2012, pch wrote:
Show quoted text
> 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