PNP-aware version of Drraw released · 27 February 2009, 11:43
I have been looking for a while for a tool to let me and our users create custom web-based dashboards from PNP RRD files using a web interface.
On the PNP users mailing list someone mentioned a perl-based tool to create dashboards from RRD files called Drraw. I installed it (very easy!) and it is quite a cool tool for this purpose. Very full-featured and flexible. The tool was written by Cristophe Kalt.
I saw a few things I did not like about it:
- PNP RRD files just have numerical DS names and so in the graph/template creation UI I was just seeing DS labels named “1,” “2,” etc .. which wasn’t very human friendly.
- The program makes you type in the path to the CGI.
- The CSS seemed a bit unreadable to me.
So I added code to the project that will read from the XML meta-data descriptors PNP creates along with RRD files so that when you go to create a new template/graph in Drraw you see the DS names as specified in the perfdata output from your Nagios plugins. I also cleaned the CSS up, renamed the CGI to index.cgi, and included a little Apache configuration snippet to make it easy to set up Drraw in Apache with the index.cgi file being used as the directory index.
http://github.com/perldork/drraw-pnp/tree/master
Hope you find it useful; I have interest in integrating this functionality into PNP .. if you have interest as well and are famililar with PNP, perl, and PHP, write me, I welcome help.
Update – Cristophe added PNP integration code to the project independent of me doing it, his release JUST came out today :), so feel free to use my variant but I am discussing with him and will be talking with other developers about rolling my changes back into the main line and helping with the project as a developer.
— Max Schubert
Comment
Nagios Performance Tuning: Early Lessons Learned, Lessons Shared. Part 4 - Scalable Performance Data Graphing Nagios Performance Tuning: Early Lessons Learned, Lessons Shared. Part 4.5 - Scalable Performance Data Graphing
