service check not graphing

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
psteam
Posts: 32
Joined: Fri Dec 02, 2011 12:03 pm
Location: Montreal, Quebec

service check not graphing

Post by psteam »

Hi there,
I build a custom script and it needs to graph. I have built other scripts and it should graph
Here is the output from the CLI

VmSizemb:978 | VmRSS:621 VmSizemb:978

Also I noticed in the service details Nagios seams to pick up the performance data correctly

However it’s not graphing. Below are some settings I have set in the service details
You do not have the required permissions to view the files attached to this post.
Mediagrif
Prod Support Team
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: service check not graphing

Post by gormank »

Have a look at the related <servicename>.rrd files. See if the files exist and have a current (as of the last check) timestamp. If the timestamp is old remove/rename the .rrd files. You might keep an eye on the <servicename>.xml files as well.
psteam
Posts: 32
Joined: Fri Dec 02, 2011 12:03 pm
Location: Montreal, Quebec

Re: service check not graphing

Post by psteam »

something is odd
there is no file for that service
tbv1nagios8 pdc2app109]$ ls -ltr
total 1504
-rw-rw-r-- 1 nagios nagios 2993 Feb 15 13:11 _HOST_.xml
-rwxrwxr-x 1 nagios nagios 1534768 Feb 15 13:11 _HOST_.rrd
[ajdazeve@tbv1nagios8 pdc2app109]$ pwd
/vol0/nagios/share/perfdata/pdc2app109
Mediagrif
Prod Support Team
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: service check not graphing

Post by rkennedy »

I don't believe your perfdata is being generated properly. It should follow a structure similar to this -

Code: Select all

time=0.745068s;;;0.000000 size=65844B;;;0
See this link for a bit more information about performance data -
https://nagios-plugins.org/doc/guidelines.html#AEN200
Former Nagios Employee
psteam
Posts: 32
Joined: Fri Dec 02, 2011 12:03 pm
Location: Montreal, Quebec

Re: service check not graphing

Post by psteam »

i readed the doc and changed my ouput to come out like so

/mdf_jms_check4.sh -u ust -a JMS
VmSizemb:978 | VmRSS:665MB VmSizemb:978MB


however it still dosent graph ..is there a way to force this in nagios to reset something and re-create the rdd files?
Mediagrif
Prod Support Team
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: service check not graphing

Post by rkennedy »

I believe you will need to use equal signs, and not colons.

If you don't have any previous RRD files created in the directory, you should be fine.

Check out this directory, /usr/local/nagios/share/perfdata/hostname/service.rrd/xml/hosthere - replace hosthere with the host which this check is running under.
Former Nagios Employee
psteam
Posts: 32
Joined: Fri Dec 02, 2011 12:03 pm
Location: Montreal, Quebec

Re: service check not graphing

Post by psteam »

This worked thank you very much.
I have another small question.
Currently we have one nagios per datacenter.
What I was wondering is if there’s a way to gather all perfdata in one location (ie: nfs share drive) mounted on each Nagios and have perfdata dump in there.. Would I be able to grab a Nagios and pull reports on hosts not setup in that Nagios?
Is there another solution that I could put in place?
Mediagrif
Prod Support Team
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: service check not graphing

Post by rkennedy »

Would I be able to grab a Nagios and pull reports on hosts not setup in that Nagios?
You could pull the RRD data - but, you would need to display it elsewhere. XI will not be able to just "read" all of the data with no associations made. It will only display for the hosts it has.

I wouldn't recommend writing to NFS as the read / write is pretty high for perfdata. If anything, you could always download it all once a day.

What are you looking to accomplish specifically?
Former Nagios Employee
psteam
Posts: 32
Joined: Fri Dec 02, 2011 12:03 pm
Location: Montreal, Quebec

Re: service check not graphing

Post by psteam »

for example we have a an application with 4 different app servers.
2 in one Datacenter and 2 in the other...
now i can pull lets says cpu graphs on each nagios ( per datacenter0
what i would like to do is pull a graph with all app servers on the same graph.


i was thinking perhaps i could put all perf data in the same nfs share but how to read it
Mediagrif
Prod Support Team
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: service check not graphing

Post by tmcdonald »

You might be able to use this:

https://exchange.nagios.org/directory/A ... ol/details

Though I am not sure if, like XI itself, you can read arbitrary RRD data or just that which is associated with a host/service already. Toss all the RRD data you want to read in an XI machine with the rest and test it out!
Former Nagios employee
Locked