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