Bug #3202

Home - Nagios Statistics - Graphs RRD graphs are not updated

Added by Kurta Laszlo about 2 years ago. Updated almost 2 years ago.

Status:ClosedStart date:04/02/2012
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:Centreon - Home
Target version:Centreon 2.3.6
Resolution:invalid

Description

Centreon 2.3.5 install with Nagios 3.3.1

The Nagios performance metrics are not updated in the Home - Nagios Statistics - Graphs menu.
Everything is working fine except that feature.

NANs.PNG - only NANs shown (52.1 KB) Kurta Laszlo, 04/02/2012 06:58 pm

History

#1 Updated by Peeters Jan about 2 years ago

Are the rrd files owned by the correct user?
Does nagios have the permissions (sudo?) to execute nagiostats (remotely?)

This is something that should work, so I think you have a permissions problem.

#2 Updated by Kurta Laszlo about 2 years ago

OK, thanks, that was the problem (permissions).

root@server:509:9:~$ ls al /home/centreon/var/nagios-perf/perfmon-1/
összesen 13244
drwxrwxr-x 2 nagios nagios 4096 márc 29 21.33 .
drwxr-xr-x 3 nagios nagios 4096 márc 29 21.33 ..
-rw-r--r-
1 root root 1349360 márc 29 21.33 nagios_active_host_execution.rrd
rw-r--r- 1 root root 1799032 márc 29 21.33 nagios_active_host_last.rrd
rw-r--r- 1 root root 1349360 márc 29 21.33 nagios_active_host_latency.rrd
rw-r--r- 1 root root 1349360 márc 29 21.33 nagios_active_service_execution.rrd
rw-r--r- 1 root root 1799032 márc 29 21.33 nagios_active_service_last.rrd
rw-r--r- 1 root root 1349360 márc 29 21.33 nagios_active_service_latency.rrd
rw-r--r- 1 root root 1349360 márc 29 21.33 nagios_cmd_buffer.rrd
rw-r--r- 1 root root 1349360 márc 29 21.33 nagios_hosts_states.rrd
rw-r--r- 1 root root 1799032 márc 29 21.33 nagios_services_states.rrd

chown nagios:nagios /home/centreon/var/nagios-perf/perfmon-1/*
solved the problem.

#3 Updated by Sylvestre Ho about 2 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
  • Resolution set to invalid

#4 Updated by Julien Mathis about 2 years ago

  • Target version changed from Centreon-2.3.5 to Centreon 2.3.6

#5 Updated by Fabrice SARRA almost 2 years ago

Hi,
I have the same probleme since I changed Centreon-2.2 to Centreon-2.3.7

Here are the files permissions
-rwxrwxr-x 1 nagios root 145876 May 3 11:30 nagios_active_host_execution.rrd
-rwxrwxr-x 1 nagios root 194348 May 3 11:30 nagios_active_host_last.rrd
-rwxrwxr-x 1 nagios root 145876 May 3 11:30 nagios_active_host_latency.rrd
-rwxrwxr-x 1 nagios root 145876 May 3 11:30 nagios_active_service_execution.rrd
-rwxrwxr-x 1 nagios root 194348 May 3 11:30 nagios_active_service_last.rrd
-rwxrwxr-x 1 nagios root 145876 May 3 11:30 nagios_active_service_latency.rrd
-rwxrwxr-x 1 nagios root 145876 May 3 11:30 nagios_cmd_buffer.rrd
-rwxrwxr-x 1 nagios root 145876 May 3 11:30 nagios_hosts_states.rrd
-rwxrwxr-x 1 nagios root 194348 May 3 11:30 nagios_services_states.rrd

I tried lot of things (like 777 permission...) and checked paths configuration but I didn't find any problem.

thanks.

#6 Updated by Quentin Garnier almost 2 years ago

Hi,

Can you execute manually the "/usr/share/centreon/bin/nagiosPerfTrace" script with nagios user (like in "/etc/cron.d/centstorage" and give us the log.

#7 Updated by Fabrice SARRA almost 2 years ago

My problem is solved.

In the file "nagiosPerfTrace", the path was :
$VarLib = "/app/centreon/lib/";
I change it to :
$VarLib = "/app/centreon/var/lib/";
And it works now.

Thanks.

Also available in: Atom PDF