Page 1 of 1

Advanced Graphing

Posted: Wed Sep 24, 2014 5:30 pm
by rseiwert
Old thread I know but I have the same question. Does Nagios XI support the "Special Templates" when using the PNP. I see the directory /usr/local/nagios/share/pnp/templates.special but XI doesn't seem to pull from it.

I was thinking about installing the full and latest version of pnp4nagios as suggested to the OP to test this further. Will this break XI?

Re: Advanced Graphing

Posted: Thu Sep 25, 2014 10:30 am
by tmcdonald
I guess my first questions are:

What version of Nagios XI are you trying this on?
Are you sure you're using PNP and not Highcharts?

Re: Advanced Graphing

Posted: Thu Sep 25, 2014 6:56 pm
by rseiwert
Using 2014 right now. Have highcharts disabled. When I put a PNP template in templates.special the check continues to report "No performance graphs were found for this service."

To clarify my queries.
I assume this is pnp-latest ( Revision: 665 ) in XI.
Can I install the latest latest pnp-latest ( Revision: 665 ) on top of Nagios XI 2014R1.4 without breaking it?

Can I install pnp4nagios-0.6.24 on top of Nagios XI 2014R1.4 without breaking it?
This was what I was using before I upgraded to XI and really really liked it. I think the XML files are different between the two and this might break XI.

Special Templates are different than Custom Templates. http://docs.pnp4nagios.org/pnp-0.4/tpl_special

Re: Advanced Graphing

Posted: Fri Sep 26, 2014 9:24 am
by abrist
rseiwert wrote:This was what I was using before I upgraded to XI and really really liked it. I think the XML files are different between the two and this might break XI.
It will indeed break XI. pnp4nagios 0.4 ships with XI and upgrading it will break graphing.

Re: Advanced Graphing

Posted: Fri Sep 26, 2014 12:18 pm
by Box293
rseiwert wrote:Does Nagios XI support the "Special Templates" when using the PNP. I see the directory /usr/local/nagios/share/pnp/templates.special but XI doesn't seem to pull from it.
There may have been some test and dev done with pnp4nagios 0.6 and this is probably a remnant of that. The templates.special directory will just be ignored because XI uses pnp4nagios 0.4.

Re: Advanced Graphing

Posted: Thu Oct 09, 2014 1:23 am
by rseiwert
templates.special is not ignored, btw. I recently added perf data to a check that didn't have any but it would not generate the graph. I tried a lot of things but it would not graph. Was very simple and the rrd and xml were valid but I just got an broken image for the graph.

Previously I had attempted to used templates.special to build a graph for this check using the data in other rrds. When the service did not have an rrd and xml file all that displayed was "No performance graphs were found for this service.". As soon as there was an rrd and xml file the special template kicked in. Deleting the special template caused the default template to kick in and the graph rendered normally. Just took me awhile to check that since I was running under the impression that it ignored. Fun debugging at 2am.
The templates.special directory will just be ignored because XI uses pnp4nagios 0.4.
BTW, PNP 0.4 OOB does define templates.special https://docs.pnp4nagios.org/pnp-0.4/tpl_special so technically it makes sense.

Re: Advanced Graphing

Posted: Thu Oct 09, 2014 1:30 pm
by tmcdonald
I'm not really clear by your last post if things are graphing properly for you now, but if not could you share the template you made?

Re: Advanced Graphing

Posted: Thu Oct 09, 2014 6:25 pm
by rseiwert
I'm good you can close this. Just wanted to let the next person who searched for this topic know that templates.special is definitely not ignored by XI, just not 100% sure how it's used by XI.