Skip Menu |

This queue is for tickets about the jmx4perl CPAN distribution.

Report information
The Basics
Id: 58927
Status: rejected
Priority: 0/
Queue: jmx4perl

People
Owner: Nobody in particular
Requestors: tomasz.krym [...] gmail.com
Cc:
AdminCc:

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



Subject: check_jmx4perl returns a CRITICAL status when the value is negative for checks with --delta parameter
Date: Tue, 29 Jun 2010 15:12:56 +0800
To: bug-jmx4perl [...] rt.cpan.org
From: Tomasz Krym <tomasz.krym [...] gmail.com>
The following check returns a CRITICAL state, when the value is a negative number (in my case more messages were dequeued than enqueued) : command_line $USER1$/check_jmx4perl --url http://$HOSTADDRESS$:$_HOSTPORT$/j4p --name enqueued-on-myQueue --mbean jboss.messaging.destination:name=myQueue,service=Queue --attribute MessageCount --delta 60 --critical 30 --warning 5 --label "Increase of messages enqueued on myQueue: %v" I assume that this is not expected behavior. If it is not a bug, it would be great to know a possible workaround. Thanks!
On Tue Jun 29 03:13:04 2010, tomasz.krym wrote:
Show quoted text
> The following check returns a CRITICAL state, when the value is a
> negative
> number (in my case more messages were dequeued than enqueued) :
>
> command_line $USER1$/check_jmx4perl --url
> http://$HOSTADDRESS$:$_HOSTPORT$/j4p
> --name enqueued-on-myQueue --mbean
> jboss.messaging.destination:name=myQueue,service=Queue --attribute
> MessageCount --delta 60 --critical 30 --warning 5 --label "Increase of
> messages enqueued on myQueue: %v"
>
> I assume that this is not expected behavior. If it is not a bug, it
> would be
> great to know a possible workaround. Thanks!

The specification of the critical and warning threshold follows the 
"Nagios Plugin Development Guidelines" 
--> http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT

I.e. if you want to allow all rates between [-infinity,30], then you should specify  " ~:30" as 
threshold.

Or, for your use case above: 

  --warning "~:5" --critical "~:30"

hope this helps ...

Subject: Re: [rt.cpan.org #58927] check_jmx4perl returns a CRITICAL status when the value is negative for checks with --delta parameter
Date: Tue, 29 Jun 2010 16:22:44 +0800
To: bug-jmx4perl [...] rt.cpan.org
From: Tomasz Krym <tomasz.krym [...] gmail.com>
Yes, it works, I didn't know the thresholds specification. Thanks for help and sorry for bugging you.