Page 1 of 1

graph not updating after using ramdisk

Posted: Fri Jun 22, 2012 4:22 am
by Mitchell
Hi,

After making changes using http://assets.nagios.com/downloads/nagi ... giosXI.pdf the graphs stopped getting updated. I checked the npcd process is running and the logs shows that it is processing perfdata files. Could you please help in resolving the issue. Please let me know what additional information you need.

Thanks
Ashish

Re: graph not updating after using ramdisk

Posted: Fri Jun 22, 2012 10:20 am
by mguthrie
It's important to following the instructions in the exactly as they are outlined that document. I'd start by going back through and reviewing each of the steps, and check for typos, etc.

Can you show us the output from the following:

Code: Select all

ls -a -r /var/nagiosramdisk

Re: graph not updating after using ramdisk

Posted: Fri Jun 22, 2012 11:51 am
by Mitchell
I followed it again completely... here is the command output. I am seeing a lot of files in /var/nagiosramdisk/spool/xidpe/ directory.

Code: Select all

[root@pnagios02lxv ~]# ls -ltr /var/nagiosramdisk/
total 10200
drwxrwxr-x 5 nagios nagios     100 Jun 22 01:37 spool
-rw-r--r-- 1 nagios nagios  769981 Jun 22 01:55 objects.cache
-rw-rw-r-- 1 nagios nagios 8539101 Jun 22 09:39 host-perfdata
-rw-r--r-- 1 nagios nagios 1096937 Jun 22 09:39 status.dat
-rw-rw-r-- 1 nagios nagios    3612 Jun 22 09:39 service-perfdata
drwxrwxr-x 2 nagios nagios      80 Jun 22 09:39 tmp
[root@pnagios02lxv ~]# ls -ltr /var/nagiosramdisk/spool
total 0
drwxrwxr-x 2 nagios nagios    40 Jun 22 01:36 perfdata
drwxrwxr-x 2 nagios nagios    40 Jun 22 09:40 checkresults
drwxrwxr-x 2 nagios nagios 38720 Jun 22 09:40 xidpe
You have new mail in /var/spool/mail/root
[root@pnagios02lxv ~]# ls -ltr /var/nagiosramdisk/spool/perfdata/
total 0
[root@pnagios02lxv ~]# ls -ltr /var/nagiosramdisk/spool/checkresults/
total 28
-rw------- 1 nagios nagios   0 Jun 22 09:41 cejtoi7.ok
-rw------- 1 nagios nagios 478 Jun 22 09:41 cejtoi7
-rw------- 1 nagios nagios   0 Jun 22 09:41 cwJzjT4.ok
-rw------- 1 nagios nagios 478 Jun 22 09:41 cwJzjT4
-rw------- 1 nagios nagios   0 Jun 22 09:41 c4o7DNZ.ok
-rw------- 1 nagios nagios 478 Jun 22 09:41 c4o7DNZ
-rw------- 1 nagios nagios   0 Jun 22 09:41 ccdSiSt.ok
-rw------- 1 nagios nagios 478 Jun 22 09:41 ccdSiSt
-rw------- 1 nagios nagios   0 Jun 22 09:41 cyZFgoS.ok
-rw------- 1 nagios nagios 478 Jun 22 09:41 cyZFgoS
-rw------- 1 nagios nagios   0 Jun 22 09:41 cvDvIJK.ok
-rw------- 1 nagios nagios 478 Jun 22 09:41 cvDvIJK
-rw------- 1 nagios nagios   0 Jun 22 09:41 c3mBEmp.ok
-rw------- 1 nagios nagios 425 Jun 22 09:41 c3mBEmp
[root@pnagios02lxv ~]# ls -ltr /var/nagiosramdisk/tmp/
total 16
-rw------- 1 nagios nagios 287 Jun 22 09:43 checkYKig3H
-rw------- 1 nagios nagios 287 Jun 22 09:43 checkf8814U
-rw------- 1 nagios nagios 287 Jun 22 09:43 check8qTAxa
-rw------- 1 nagios nagios 289 Jun 22 09:43 checkieGe0p

Re: graph not updating after using ramdisk

Posted: Fri Jun 22, 2012 12:54 pm
by Mitchell
My current nagios version is R2.0 and looks like I need to upgrade the XI to R2.3 for checkresults changes. Which latest version should I upgrade to since there is some fork issue with latest nagios?

Regards
Ashish

Re: graph not updating after using ramdisk

Posted: Fri Jun 22, 2012 1:34 pm
by Mitchell
Thanks for help. After upgrade it started working.