rrdcached - Graphs missing data

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
dmanem
Posts: 83
Joined: Fri Apr 13, 2012 10:27 am

rrdcached - Graphs missing data

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

Re: rrdcached - Graphs missing data

Post 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.*
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
dmanem
Posts: 83
Joined: Fri Apr 13, 2012 10:27 am

Re: rrdcached - Graphs missing data

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

Re: rrdcached - Graphs missing data

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
dmanem
Posts: 83
Joined: Fri Apr 13, 2012 10:27 am

Re: rrdcached - Graphs missing data

Post 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.
You do not have the required permissions to view the files attached to this post.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: rrdcached - Graphs missing data

Post 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
dmanem
Posts: 83
Joined: Fri Apr 13, 2012 10:27 am

Re: rrdcached - Graphs missing data

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

Re: rrdcached - Graphs missing data

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

Re: rrdcached - Graphs missing data

Post 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
dmanem
Posts: 83
Joined: Fri Apr 13, 2012 10:27 am

Re: rrdcached - Graphs missing data

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