Bug #3202
Home - Nagios Statistics - Graphs RRD graphs are not updated
| Status: | Closed | Start date: | 04/02/2012 | |
|---|---|---|---|---|
| Priority: | Normal | Due 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.
History
#1
Updated by Peeters Jan about 1 year 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 1 year ago
OK, thanks, that was the problem (permissions).
root@server:509:9:~$ ls al /home/centreon/var/nagios-perf/perfmon-1/ 1 root root 1349360 márc 29 21.33 nagios_active_host_execution.rrd
ö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-rw-r--r- 1 root root 1799032 márc 29 21.33 nagios_active_host_last.rrdrw-r--r- 1 root root 1349360 márc 29 21.33 nagios_active_host_latency.rrdrw-r--r- 1 root root 1349360 márc 29 21.33 nagios_active_service_execution.rrdrw-r--r- 1 root root 1799032 márc 29 21.33 nagios_active_service_last.rrdrw-r--r- 1 root root 1349360 márc 29 21.33 nagios_active_service_latency.rrdrw-r--r- 1 root root 1349360 márc 29 21.33 nagios_cmd_buffer.rrdrw-r--r- 1 root root 1349360 márc 29 21.33 nagios_hosts_states.rrdrw-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 1 year ago
- Status changed from New to Closed
- % Done changed from 0 to 100
- Resolution set to invalid
#4
Updated by Julien Mathis about 1 year ago
- Target version changed from Centreon-2.3.5 to Centreon 2.3.6
#5
Updated by Fabrice SARRA about 1 year 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 about 1 year 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 about 1 year 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.