How to format Output for Nagios to understand

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
disrael
Posts: 116
Joined: Tue Jun 19, 2012 3:16 pm

How to format Output for Nagios to understand

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: How to format Output for Nagios to understand

Post 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.
Locked