Page 1 of 1
Generating performance data
Posted: Fri Mar 06, 2015 6:52 pm
by stecino
Hello,
I have a bash script that parses various json fields and spits out the values.
I want to be able to graph these values based on each field. I am not going to use it with any threshold at the moment. So it's only going to be strictly trending graphs.
I am already using pnp4nagios plugin installed and working. How can I pass these to pnp4nagios for logging?
Thanks in advance
Re: Generating performance data
Posted: Fri Mar 06, 2015 8:05 pm
by Box293
I would use this bash script as the command for a nagios service. Just make it always return a 0 exit state. Then your output will contain all the performance data. Nagios will then pass this off to pnp4nagios which will be stored in rrds.
I did a talk on this at the Nagios World Conference, I go through creating a basic plugin and how to add performance data to it. I think a lot of your questions will be answered in that presentation.
http://www.slideshare.net/nagiosinc/tro ... and-graphs
https://www.youtube.com/watch?v=kqA2KcpUFg4
Re: Generating performance data
Posted: Wed Mar 11, 2015 12:51 pm
by stecino
Box293 wrote:I would use this bash script as the command for a nagios service. Just make it always return a 0 exit state. Then your output will contain all the performance data. Nagios will then pass this off to pnp4nagios which will be stored in rrds.
I did a talk on this at the Nagios World Conference, I go through creating a basic plugin and how to add performance data to it. I think a lot of your questions will be answered in that presentation.
http://www.slideshare.net/nagiosinc/tro ... and-graphs
https://www.youtube.com/watch?v=kqA2KcpUFg4
Thanks alot, I will take a look
Re: Generating performance data
Posted: Wed Mar 11, 2015 12:52 pm
by abrist
Also, make sure to adhere to the expected guidelines for performance data:
https://nagios-plugins.org/doc/guidelines.html#AEN200