Page 1 of 1

Templates and custom graphs

Posted: Tue May 28, 2013 6:20 pm
by uidaho
Hello,

I am having some trouble with uploading and using custom templates.

I have created a custom command called "check_cpu_stat_ux". I have created a custom graph template and uploaded it via XI "graph templates" page.

The XML graph appears to be using the new graph template:

[nagios@monitor01 BannerDBS1]# head Perf_-_CPU_ux.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<NAGIOS>
<DATASOURCE>
<TEMPLATE>check_cpu_stat_ux</TEMPLATE>
<RRDFILE>/usr/local/nagios/share/perfdata/BannerDBS1/Perf_-_CPU_ux.rrd</RRDFILE>

However, the graphs viewable with Nagios XI are NOT using the new template. How can I troubleshoot this? I uploaded the template over two hours ago.


found my error - misnamed template.

However, what is the best method for troubleshooting the graphing portion? graphapi.log is empty. npcd.log doesn't seem to give any information related to what templates are being used where. error_log?

Thanks!

Re: Templates and custom graphs

Posted: Wed May 29, 2013 12:12 pm
by slansing
For troubleshooting graphing, npcd.log, and perfdata.log are invaluable, you can easily check these though the XI server's web UI now by navigating to Admin > System Profile > Download Profile "while this is mostly used by us for troubleshooting, it offers a tail of various logs, and snaps of certain files, as well as your latest snapshot all rolled into one.