PDA

View Full Version : Centreon 2 with pnp graphs


dicenl
4th February 2009, 15:48
Hi all!
i used to use centreon 1.4 for a while. For the graphs i had pnp 0.4.12 so i could report monthly to our customers with a custom pdf. Now for about 4 weeks i've been testing with centreon 2. Got everything working but the graphs are not in a way that i can give them to my customers. Now i would like to use pnp for reporting but i want to use the centreon graphs for my own use.

In short is there a way to use pnp and also have working graphs in centreon. it seems like its or centreon or pnp. or am i doing something wrong (verry much possible :) )

What i did:

For the Service Performance Data Processing Command i made a simple, custom command that might be pretty stupid:

#!/bin/bash

# PNP
/usr/local/nagios/libexec/process_perfdata.pl

# Centreon
/usr/local/nagios/libexec/process-service-perfdata "$LASTSERVICECHECK$" "$HOSTNAME$" "$SERVICEDESC$" "$SERVICEOUTPUT$" "$SERVICESTATE$" "$SERVICEPERFDATA$"

It does build pnp graphs but the centreon graphs are empty. i do see the graph frames but nothing in it. i thinks its very logical it only fills pnp but is there an other way to fill both graphs.

many thanks in advance!!

julio
4th February 2009, 17:23
centstorage is runnig ?

dicenl
4th February 2009, 19:40
yes it is. as soon as i set the Service Performance Data Processing Command back to default i starts building graphs in centreon again.

Jissouille
7th February 2009, 03:16
Have you tried switching the PNP and CENTREON lines ?

nicko1977
7th February 2009, 08:41
Hello,

I try to do same thing to have graph in nagvis.

I follow an another post and configure pnp with NPCD.

I use the function in Centreon/CentStorage Database to make a copy of the servicedata. And i configured PNP to use this file.

It seems to works, but i've got a lot of holes in pnp graphs for my interfaces. I use a snmp check to gather data. It works well in Centreon. But it looks like Centreon replace the file and not append data.

I'l make more tries.

dicenl
8th February 2009, 16:35
sorry for my late response, im very busy at the moment. im now starting with a new test setup. if i find anything that works i'll post it!

nicko1977, what post are you following
I follow an another post and configure pnp with NPCD.

nicko1977
9th February 2009, 00:50
this one

http://forum.centreon.com/showthread.php?t=7225&highlight=pnp