Page 1 of 1
No performance graph since update
Posted: Mon Feb 27, 2012 10:38 am
by Wilfried
Hello,
I have a problem with performance graphs
Since I updated my server from 2011R1.9 to 2011R2.1 i hve no more datas stored for my graphs
I checked the permission but in the wiki page it is say:
Code: Select all
Check perfdata directory permissions. Nagios XI needs to be able to write to its nagios/share/perdata/ directory. Check the file permissions on that directory and its subdirectories. For example:
ll /usr/local/nagios/share/perfdata
Should return something like this:
drwxrwxrwx 2 nagios nagios 4096 Oct 18 17:01 192.168.5.1
after execute the script firperms
the permissions are apache:nagios
In both case i have no datas stored for graph
service npcd is running
Code: Select all
ll /usr/local/nagios/var/spool/perfdata
result: "total 0"
thanks for your help
Re: No performance graph since update
Posted: Mon Feb 27, 2012 11:43 am
by scottwilkerson
Code: Select all
ll /usr/local/nagios/var/spool/perfdata
is just where performance files are before being processed. One processed they are removed.
The data is then stored in a subfolder in /usr/local/nagios/share/perfdata
Re: No performance graph since update
Posted: Mon Feb 27, 2012 12:00 pm
by mguthrie
Also try selecting a timeperiod to view the graphs. There may be some javascript variables that need to be reset after the upgrade. Select the "4 hour view" and see if they show up.
Re: No performance graph since update
Posted: Tue Feb 28, 2012 3:43 am
by Wilfried
there is no date since mid week 6. when i installed the update
no more data collected since....
Re: No performance graph since update
Posted: Tue Feb 28, 2012 11:19 am
by mguthrie
Lets start with this:
Code: Select all
chown -R nagios.nagios /usr/local/nagios/share/perfdata
chmod -R 775 /usr/local/nagios/share/perfdata
Were you using rrdcached or a RAM disk at all on your system before the upgrade?
Re: No performance graph since update
Posted: Wed Feb 29, 2012 3:38 am
by Wilfried
mguthrie wrote:Lets start with this:
Code: Select all
chown -R nagios.nagios /usr/local/nagios/share/perfdata
chmod -R 775 /usr/local/nagios/share/perfdata
Already done but without success
mguthrie wrote:
Were you using rrdcached or a RAM disk at all on your system before the upgrade?
I don't think so
how to check rrdcached?
Re: No performance graph since update
Posted: Wed Feb 29, 2012 12:00 pm
by mguthrie
rrdcached takes some work to set up, you would know if you had
Can you verify that the npcd service is running ok?
Can you watch the following logs and see if you get any errors.
Code: Select all
tail -f /usr/local/nagios/var/perfdata.log
Code: Select all
tail -f /usr/local/nagios/var/npcd.log
Re: No performance graph since update
Posted: Thu Mar 01, 2012 3:02 am
by Wilfried
hello,
npcd service is running
I have no perfdata.log file
Code: Select all
tail -f /usr/local/nagios/var/npcd.log
[02-13-2012 14:08:20] NPCD: ThreadCounter 0/5 File is .
[02-13-2012 14:08:20] NPCD: DEBUG: load 0.220000/10.000000
[02-13-2012 14:08:20] NPCD: ThreadCounter 0/5 File is ..
[02-13-2012 14:08:20] NPCD: No more files to process... waiting for 15 seconds
[02-13-2012 14:08:35] NPCD: Found 2 files in /usr/local/nagios/var/spool/perfdata/
[02-13-2012 14:08:35] NPCD: DEBUG: load 0.250000/10.000000
[02-13-2012 14:08:35] NPCD: ThreadCounter 0/5 File is .
[02-13-2012 14:08:35] NPCD: DEBUG: load 0.250000/10.000000
[02-13-2012 14:08:35] NPCD: ThreadCounter 0/5 File is ..
[02-13-2012 14:08:35] NPCD: No more files to process... waiting for 15 seconds
Re: No performance graph since update
Posted: Thu Mar 01, 2012 3:41 am
by Wilfried
Problem solved
i have changed owner for all files in /usr/local/nagios/var
change from "apache" to "nagios"
perfdata.log file was created justed after I've changed the owner: very strange
so thanks a lot for your help
Re: No performance graph since update
Posted: Thu Mar 01, 2012 8:28 am
by scottwilkerson
glad this is resolved.