Page 1 of 3

rrdcached - Graphs missing data

Posted: Tue Oct 30, 2012 2:26 pm
by dmanem
Hello,

I made changes to the Nagios XI server based on the document "Using rrdcahed with Nagios XI". After following the whole procedure, I know there would be a lag of around 9 minutes in my graphs as that is the value I fed by feeding the following lines in rrdcached file "OPTIONS="-l unix:/var/rrdtool/rrdcached/rrdcached.sock -F -s nagios -m 0660 -w 500 -z 90 -j /tmp/ -b /var/rrdtool/rrdcached -P FLUSH,PENDING" But its been a long time and I have not been getting any data in my graphs.

I might be missing something here. Please let me know.

Thank you.

Re: rrdcached - Graphs missing data

Posted: Tue Oct 30, 2012 3:41 pm
by scottwilkerson
Did you follow the section for "Setting Up PNP To Utilize rrdcached" in
http://assets.nagios.com/downloads/nagi ... ios_XI.pdf

If so, can you see the journaling by running?

Code: Select all

ls -l /tmp/rrd.*

Re: rrdcached - Graphs missing data

Posted: Tue Oct 30, 2012 4:13 pm
by dmanem
I did not set up PNP on 26th which was the day I was setting up rrdcached but after looking at the graphs today, I double checked the document and set up the PNP around 5 hours ago but still no graphs.

This is the output I got with the above command

[root@localhost ~]# ls -l /tmp/rrd.*

-rw-r--r-- 1 nagios users 1853117 Oct 30 15:52 /tmp/rrd.journal.1351626761.073562
-rw-r--r-- 1 nagios users 290816 Oct 30 16:02 /tmp/rrd.journal.1351630361.074125

Thank you

Re: rrdcached - Graphs missing data

Posted: Tue Oct 30, 2012 4:53 pm
by scottwilkerson
Can you run the following to see if we have any errors

Code: Select all

tail -f /usr/local/nagios/var/npcd.log
tail -f /usr/local/nagios/var/perfdata.log
Also, lets verify npcd is running

Code: Select all

service npcd status

Re: rrdcached - Graphs missing data

Posted: Tue Oct 30, 2012 6:01 pm
by dmanem
Hello,

Below is a log file for the above tail commands. Perfdata log is showing errors.
It shows that NPCD is running.

Thank you.

Re: rrdcached - Graphs missing data

Posted: Wed Oct 31, 2012 9:14 am
by mguthrie
Can you take a look at the following wiki post and see if it applies to your issue:
http://support.nagios.com/wiki/index.ph ... ve_No_Data

Re: rrdcached - Graphs missing data

Posted: Wed Oct 31, 2012 9:35 am
by dmanem
Hello,

I ran the command and the output is 2
[root@localhost xidpe]# ls -f | wc -l
2

It is not a large number so I did not run the remaining commands.

Re: rrdcached - Graphs missing data

Posted: Wed Oct 31, 2012 10:13 am
by scottwilkerson
I did notice in the log you posted you were getting some timeouts also, can you run

Code: Select all

cd /usr/local/nagios/var/spool/perfdata
 ls -f | wc -l
And return the count

Thanks

Re: rrdcached - Graphs missing data

Posted: Wed Oct 31, 2012 10:19 am
by mguthrie
Usually when I had issues with rrdcached it was permissions related. Can you add this line to the rrdcached options:

Code: Select all

RRDC_USER=nagios
and then restart the rrdcached service:

Code: Select all

service rrdcached restart

Re: rrdcached - Graphs missing data

Posted: Wed Oct 31, 2012 10:37 am
by dmanem
Hello ,

I ran the below command and I got output as 3
[root@localhost perfdata]# ls -f | wc -l
3

This is what I have in rrdcached
#Settings for rrdcached
OPTIONS="-l unix:/var/rrdtool/rrdcached/rrdcached.sock -F -s nagios -m 0660 -w 500 -z 90 -j /tmp/ -b /var/rrdtool/rrdcached -P FLUSH,PENDING"
RRDC_USER=nagios

just like the document mentioned.

When I run the below command it gives

[root@localhost tmp]# ll
-rw-r--r-- 1 nagios users 4096 Oct 31 15:21 rrd.journal.1351696903.117208