Page 1 of 1
Service doesn't seem to be graphing
Posted: Mon Nov 16, 2015 9:59 am
by dpasacritacrown
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?
Re: Service doesn't seem to be graphing
Posted: Mon Nov 16, 2015 11:04 am
by rkennedy
I just tested the check_apachestatus script -
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
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?
Re: Service doesn't seem to be graphing
Posted: Mon Nov 16, 2015 11:20 am
by dpasacritacrown
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
Posted: Mon Nov 16, 2015 12:40 pm
by rkennedy
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?
Re: Service doesn't seem to be graphing
Posted: Mon Nov 16, 2015 3:11 pm
by dpasacritacrown
This is the output there:
So it looks like it's getting the data correctly.
Re: Service doesn't seem to be graphing
Posted: Tue Nov 17, 2015 12:41 am
by Box293
The performance data is NOT correctly formatted.
https://nagios-plugins.org/doc/guidelines.html#AEN200
Code: Select all
'label'=value[UOM];[warn];[crit];[min];[max]
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
Re: Service doesn't seem to be graphing
Posted: Wed Dec 09, 2015 11:03 am
by dpasacritacrown
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
Posted: Wed Dec 09, 2015 12:59 pm
by rkennedy
@dpasacritacrown would you mind posting what you changed to help others in the future?
Re: Service doesn't seem to be graphing
Posted: Wed Dec 09, 2015 5:19 pm
by Box293
Sweet, glad you got it working
