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
Post
by Wilfried » Mon Feb 27, 2012 10:38 am
Hello,
I have a problem with performance
graph s
Since I updated my server from 2011R1.9 to 2011R2.1 i hve no more datas stored for my
graph s
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
Post
by scottwilkerson » Mon Feb 27, 2012 11:43 am
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
mguthrie
Posts: 4380 Joined: Mon Jun 14, 2010 10:21 am
Post
by mguthrie » Mon Feb 27, 2012 12:00 pm
Also try selecting a timeperiod to view the graph s. 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
Post
by Wilfried » Tue Feb 28, 2012 3:43 am
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
Post
by mguthrie » Tue Feb 28, 2012 11:19 am
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
Post
by Wilfried » Wed Feb 29, 2012 3:38 am
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
Post
by mguthrie » Wed Feb 29, 2012 12:00 pm
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
Wilfried
Posts: 10 Joined: Mon Oct 24, 2011 8:20 am
Post
by Wilfried » Thu Mar 01, 2012 3:02 am
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
Post
by Wilfried » Thu Mar 01, 2012 3:41 am
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
Post
by scottwilkerson » Thu Mar 01, 2012 8:28 am
glad this is resolved.