No performance graph since update

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Wilfried
Posts: 10
Joined: Mon Oct 24, 2011 8:20 am

No performance graph since update

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: No performance graph since update

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: No performance graph since update

Post 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.
Wilfried
Posts: 10
Joined: Mon Oct 24, 2011 8:20 am

Re: No performance graph since update

Post by Wilfried »

there is no date since mid week 6. when i installed the update
no more data collected since....
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: No performance graph since update

Post 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?
Wilfried
Posts: 10
Joined: Mon Oct 24, 2011 8:20 am

Re: No performance graph since update

Post 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?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: No performance graph since update

Post 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?

Code: Select all

service npcd restart
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
Wilfried
Posts: 10
Joined: Mon Oct 24, 2011 8:20 am

Re: No performance graph since update

Post 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
Wilfried
Posts: 10
Joined: Mon Oct 24, 2011 8:20 am

Re: No performance graph since update

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: No performance graph since update

Post by scottwilkerson »

glad this is resolved.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart