Page 1 of 1
Graph Templates
Posted: Thu Dec 13, 2012 1:56 pm
by yaanatech
Hi All,
I have some scripts I wrote and need to graph the data. I understand the output of the script so Nagios knows it is performance data, but I am not finding much in the terms of documentation for making the .php graph template I need.
Is there any documentation on this?
Gavin
Re: Graph Templates
Posted: Thu Dec 13, 2012 2:24 pm
by lmiltchev
We don't have a documentation on creating custom graph templates, but you can review the pnp4nagios documentation:
http://docs.pnp4nagios.org/pnp-0.4/tpl
Graph templates in Nagios XI are placed in "/usr/local/nagios/share/pnp/". You can install them via the web interface by going to: Admin->Graph Templates->Browse->...->Upload Template
Hope this helps.
Re: Graph Templates
Posted: Thu Dec 13, 2012 5:28 pm
by yaanatech
Is there a way to forge NagiosXI to re-create the .rrd and .xml files for a particular service check?
Re: Graph Templates
Posted: Thu Dec 13, 2012 5:40 pm
by slansing
Yes you can navigate to and delete specific RRD's from the following directory:
Code: Select all
/usr/local/nagios/share/perfdata/xxxx/xxxx.rrd
WARNING, THIS WILL PERMANENTLY REMOVE THIS DATA, IT IS SUGGESTED THAT YOU BACK IT UP.
This will remove the .rrd and upon the next check, Nagios will recreate an .rrd file for that host/service.