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
Generating performance data
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Generating performance data
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
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.
Re: Generating performance data
Thanks alot, I will take a lookBox293 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
Re: Generating performance data
Also, make sure to adhere to the expected guidelines for performance data:
https://nagios-plugins.org/doc/guidelines.html#AEN200
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.
"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.