Analytic

Tuesday, September 25, 2007

Nagios Grapher - PNP Installation

Download the latest stable version from here and extract it to your favorite source path and change to this.

./configure --with-rrdtool=/usr/local/rrdtool/bin/rrdtool --with-perfdata-dir=/usr/local/nagios/share/perfdata/
make all
make install

Update 2 lines in nagios.cfg, this tells nagios how to process performance data:

process_performance_data=1
service_perfdata_command=process-service-perfdata

Edit one of your command files that is listed in nagios.cfg e.g. misccommands.cfg and add following lines.

define command{
command_name process-service-perfdata
command_line /usr/local/nagios/libexec/process_perfdata.pl
}


Now you have to define the service to process the performance data with PNP. To do this look at your service definitions in services.cfg and check the following option is set in your generic service template or specific service.

process_perf_data 1


This file can be created automatically using a script in the contrib directory, ./makeserviceextinfo, this creates a configuration file in nagios/etc. (Note: Only some entries are created, this will be corrected in version 3.

Now after restarting Nagios, when viewing a Service Detail there is an icon displayed that links through to a graph (once some data has been collected).


Note: The PHP5-GD package must be installed

5 comments:

Thomas said...

Hi! We think that you can be interested about our new open source (and free!) software: "BrainyPDM - performance data menagement", an open source system performance data management and monitoring tool.

It gather performance data from nagios or generic source for make custom graphs (hourly, daily, weekly, monthly and yearly), reports and "brainy" analysis. It's developed in Java 1.5 and we will use some standard de facto as:

- JPA/Hibernate, for a built-in multi db persistency layer

- Jetty, an embedded web container

- Velocity as template engine for create dynamic web pages

- Log4J, as logger manager

- Ant

Thomas said...

Hi! We think that you can be interested about our new open source (and free!) software: "BrainyPDM - performance data menagement", an open source system performance data management and monitoring tool.

It gather performance data from nagios or generic source for make custom graphs (hourly, daily, weekly, monthly and yearly), reports and "brainy" analysis. It's developed in Java 1.5 and we will use some standard de facto as:

- JPA/Hibernate, for a built-in multi db persistency layer

- Jetty, an embedded web container

- Velocity as template engine for create dynamic web pages

- Log4J, as logger manager

- Ant

araon said...

Great blog, keep up the good work. Glad to see sites like this.
software consultancy

araon said...

Thank you for the template! I love it!

software application

Anonymous said...

The following comment is about your blog and not the previous replies.
There are things you should learn:
1. Be more polite and consider changing the title "I am working in Computer branch. I will update my blog whenever I find a new solution!! That's it!!".
2. Learn some English.

In addition, there are facts you should keep in mind:
1. Nobody cares how much time it takes you to find a solution. If it takes too long, users won't pay another visit. There are millions of similar resources on the web.
2. Consider changing the GUI of your blog. It sucks!