Hi everyone, so I'm having some trouble graphing the performance data for a certain plugin. the plugin in question is here: https://exchange.nagios.org/directory/P ... us/details. It's a perl script that parses data from an apache server-status page, and displays the response time, as well as the number of idle, busy, and open workers. So far it's meeting expectations, and it's returning everything we need it to.
However, the data it returns doesn't seem to be graphing anywhere. It's not visible in the performance data tab for the host, and when I go to the service directly the performance data tab says there's nothing there, and I should wait a few more minutes if I'd just started monitoring it. There's nothing in the graph explorer either.
I thought maybe it was the data being returned for some reason, so I actually edited the script to only return one value, the number of busy workers. Nothing. Still no graph. So what could be wrong here? What does nagios need in order to graph something like this?
Service doesn't seem to be graphing
Re: Service doesn't seem to be graphing
I just tested the check_apachestatus script -
It looks to be returning the performance data, which is 4;0;0;1;1;0;0;0;0;0;144. Are your graphs working for other services?
Code: Select all
[root@localhost libexec]# ./check_apachestatus.pl -H 192.168.3.8
OK 0.063900 seconds response time. Idle 4, busy 2, open slots 144 | 4;0;0;1;1;0;0;0;0;0;144
Former Nagios Employee
-
dpasacritacrown
- Posts: 24
- Joined: Tue Oct 13, 2015 12:57 pm
Re: Service doesn't seem to be graphing
Yeah, it returns the same thing for me. And yup! All the other services are graphing properly, except for the ones that check if services are running, because those aren't really graphable. Just that one isn't working for whatever reason, and I'm not sure why.
Re: Service doesn't seem to be graphing
When you click on the service in question (Home->Service Detail) and go to the "Advanced" tab, do you see anything next to "Performance Data" under the "Advanced Status Details" section?
Former Nagios Employee
-
dpasacritacrown
- Posts: 24
- Joined: Tue Oct 13, 2015 12:57 pm
Re: Service doesn't seem to be graphing
This is the output there:
So it looks like it's getting the data correctly.
Code: Select all
21;0;0;2;25;0;1;0;0;0;207- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Service doesn't seem to be graphing
The performance data is NOT correctly formatted.
https://nagios-plugins.org/doc/guidelines.html#AEN200
I actually did a talk on Performance Data at the Nagios World Conference, you can watch it here:
https://www.youtube.com/watch?v=kqA2KcpUFg4
http://www.slideshare.net/nagiosinc/tro ... and-graphs
https://nagios-plugins.org/doc/guidelines.html#AEN200
Code: Select all
'label'=value[UOM];[warn];[crit];[min];[max]https://www.youtube.com/watch?v=kqA2KcpUFg4
http://www.slideshare.net/nagiosinc/tro ... and-graphs
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
dpasacritacrown
- Posts: 24
- Joined: Tue Oct 13, 2015 12:57 pm
Re: Service doesn't seem to be graphing
Sorry I never followed up with this. Anyway, Box293 ended up being correct. For whatever reason that plugin wasn't formatting its performance data correctly, but I just went in and edited where it was outputting the performance data to the format you showed me, and now it graphs properly. Thanks dude!
Re: Service doesn't seem to be graphing
@dpasacritacrown would you mind posting what you changed to help others in the future?
Former Nagios Employee
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Service doesn't seem to be graphing
Sweet, glad you got it working 
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.