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
service check not graphing
service check not graphing
You do not have the required permissions to view the files attached to this post.
Mediagrif
Prod Support Team
Prod Support Team
Re: service check not graphing
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.
Re: service check not graphing
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
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
Prod Support Team
Re: service check not graphing
I don't believe your perfdata is being generated properly. It should follow a structure similar to this -
See this link for a bit more information about performance data -
https://nagios-plugins.org/doc/guidelines.html#AEN200
Code: Select all
time=0.745068s;;;0.000000 size=65844B;;;0
https://nagios-plugins.org/doc/guidelines.html#AEN200
Former Nagios Employee
Re: service check not graphing
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?
/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
Prod Support Team
Re: service check not graphing
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.
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
Re: service check not graphing
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?
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
Prod Support Team
Re: service check not graphing
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.Would I be able to grab a Nagios and pull reports on hosts not setup in that Nagios?
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
Re: service check not graphing
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
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
Prod Support Team
Re: service check not graphing
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!
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