Generating performance data

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
stecino
Posts: 248
Joined: Thu Mar 14, 2013 4:42 pm

Generating performance data

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Generating performance data

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
stecino
Posts: 248
Joined: Thu Mar 14, 2013 4:42 pm

Re: Generating performance data

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Generating performance data

Post by abrist »

Also, make sure to adhere to the expected guidelines for performance data:
https://nagios-plugins.org/doc/guidelines.html#AEN200
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked