PNP default graph template

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
rseiwert
Posts: 196
Joined: Wed Jun 22, 2011 10:33 pm
Location: Somewhere between Here and Now

PNP default graph template

Post by rseiwert »

Recently when I updated XI I noticed my default graph template for PNP charts had been overwritten. This does happen every time I update XI. While the PNP way is to use what is in /usr/local/nagios/share/pnp/templates and if you look at http://xiserver/nagios/pnp it in fact does use the template /usr/local/nagios/share/pnp/templates/default.php. The XI-PNP implementation of performance charts does not. XI ignores /usr/local/nagios/share/pnp/templates/default.php and only uses the the /usr/local/nagios/share/pnp/templates.dist/default.php. This means the only way to change the default charting template is to modify this file. This of course is overwritten when XI is upgraded. The purpose of have the two directories is to avoid this problem. Not sure if this is a bug or feature request but in my humble opinion XI should use the default template defined in /usr/local/nagios/share/pnp/templates.
Grumpy Olde IT Guy
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: PNP default graph template

Post by abrist »

As this is wai, but most likely not as expected, I would label this as something in between a bug and a feature. I would suggest creating a bug report on http://tracker.nagios.com.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked