Page 1 of 1

How to format Output for Nagios to understand

Posted: Mon Feb 04, 2013 1:17 pm
by disrael
I have been working with check_jmx4perl and it doesn't do one thing the customer has requested. So based off the requirements, I am writing a script that uses jmx4perl and output it to Nagios. Right now it records the information in GB/MB. How do I change and alter the axis?

Code: Select all

print "OK - [java.lang:type=OperatingSystem,ProcessCpuTime] : Value $output in range | [java.lang:type#OperatingSystem,ProcessCpuTime]=$output;;";
Above is my hacked up code so at least we are getting data, though I have again modified the scrip to give percentage, so I would like to know how do I make it recognize the value as a percentage and what information can I change? Is there any documentation on this?

Kind Regards,

Doron

Re: How to format Output for Nagios to understand

Posted: Mon Feb 04, 2013 1:20 pm
by slansing
I would take a look at this document, it houses all the requirements of checks/plugins and the standard at which they should be created:

http://nagiosplug.sourceforge.net/devel ... lines.html

If you have any questions regarding this please feel free to reply.