Page 1 of 1

PNP default graph template

Posted: Wed Apr 08, 2015 10:20 am
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.

Re: PNP default graph template

Posted: Wed Apr 08, 2015 11:28 am
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.