PDA

View Full Version : Host Perfdata


eboniface
19th March 2008, 11:36
Hello all, bonjour à tous,

first of all, my Centreon version is 1.4.2.3, Nagios is 2.10.

I try to get host perfdata graph (I already have service graph).

I use a generic-host template for all my host. In this template, I put a check command like named 'check_host_alive_centreon', with the following definition:
$USER1$/check_centreon_ping -H $HOSTADDRESS$

Now I would like to have graphs from the check_centreon_ping perfdata, but I can not succeed in this step.

Here is my ODS & perfdata setup :
- ODS daemon is up & running on my nagios/centreon system. I already have graphs for some services;
- in the Centreon ODS setup, I have :
. perfdata file : /usr/local/nagios/var/service-perfdata
. sleep time=10s, move data after reading=yes
- in the Nagios.cfg file :
. Performance Data Processing Option = yes
. Host Performance Data Processing Command = process-host-perfdata
. Service Performance Data Processing Command = process-service-perfdata
process-host-perfdata is a command (yes, PING is hardcoded for test):
$USER1$/process-host-perfdata "$TIMET$" "$HOSTNAME$" "PING" "$HOSTOUTPUT$" "$HOSTSTATE$" "$HOSTPERFDATA$"
In the service-perfdata I have line like:
1205918971 system1 PING GPING OK - rtt min/avg/max/mdev = 25.509/25.509/25.509/0.000 ms UP time=25.509ms;20;40;; ok=1
1205918977 system2 PING GPING OK - rtt min/avg/max/mdev = 27.248/27.248/27.248/0.000 ms UP time=27.248ms;20;40;; ok=1

but no graph at all....
I do not have a dedicated PING service linked to my host, is this the issue ? If so, how can I graph host perfdata from the check command without creating each time a new service ?
Any idea ?

Thanks in advance,
Eric.
PS. : not easy to explain :-)

DonKiShoot
21st March 2008, 22:18
check_host_alive is generally never used by nagios.
Read nagios doc.
Use a service to graph ping latency.