Page 2 of 3

Re: rrdcached - Graphs missing data

Posted: Wed Oct 31, 2012 4:28 pm
by scottwilkerson
Can I have you run the following

Code: Select all

ll /usr/local/nagios/share/perfdata/localhost/*.rrd
If the date is the 31st for these it is likely working.

Is it all graphs that are not working? If you go to
Admin -> System Status
&
Admin -> Monitoring Engine Status

Are all items green?

Re: rrdcached - Graphs missing data

Posted: Thu Nov 01, 2012 8:54 am
by dmanem
In the output, the date is Nov 1st so it looks right.
Yes, all graphs are not working since Oct 26th.
In the monitoring engine status, in process settings, external commands is red.

Thank you.

Re: rrdcached - Graphs missing data

Posted: Thu Nov 01, 2012 9:26 am
by scottwilkerson
Can you look in your /usr/local/nagios/etc/nagios.cfg and see if

Code: Select all

check_external_commands=1
If not, make it so.

Also, can I have you run the following and return the results

Code: Select all

ll /usr/local/nagios/share/perfdata/localhost/*.rrd

Re: rrdcached - Graphs missing data

Posted: Thu Nov 01, 2012 12:10 pm
by dmanem
Check_external_commands value was 1. I did not have to change it.

The output for the command is
[root@localhost etc]# ll /usr/local/nagios/share/perfdata/localhost/*.rrd
-rwxrwxr-x 1 nagios nagios 1151280 Nov 1 16:48 /usr/local/nagios/share/perfdata/localhost/Current_Load.rr d
-rwxrwxr-x 1 nagios nagios 384736 Nov 1 16:53 /usr/local/nagios/share/perfdata/localhost/Current_Users.r rd
-rwxrwxr-x 1 nagios nagios 768008 Nov 1 16:51 /usr/local/nagios/share/perfdata/localhost/_HOST_.rrd
-rwxrwxr-x 1 nagios nagios 768008 Nov 1 16:55 /usr/local/nagios/share/perfdata/localhost/HTTP.rrd
-rwxrwxr-x 1 nagios nagios 768008 Nov 1 16:55 /usr/local/nagios/share/perfdata/localhost/PING.rrd
-rwxrwxr-x 1 nagios nagios 384736 Nov 1 16:52 /usr/local/nagios/share/perfdata/localhost/Root_Partition. rrd
-rwxrwxr-x 1 nagios nagios 384736 Nov 1 16:51 /usr/local/nagios/share/perfdata/localhost/Swap_Usage.rrd

Re: rrdcached - Graphs missing data

Posted: Thu Nov 01, 2012 1:39 pm
by scottwilkerson
So the RRD's are updating...

If you go to the localhost -> PING Service detail page and click performance graphs tab, do you see a blank graph? Can you post a screenshot?

Re: rrdcached - Graphs missing data

Posted: Thu Nov 01, 2012 5:48 pm
by dmanem
Hello,

I am sorry I should have explained before. The ping service and the rest of the host graphs are fine but its the switches port's graphs that are not being plotted on the Graph explorer nor the Bandwidth usage page. One more thing in the graph below it shows the wrong time. I keep changing the server's time but it keeps going back to 5 hours past the present time.

Thank you.

Re: rrdcached - Graphs missing data

Posted: Thu Nov 01, 2012 8:02 pm
by scottwilkerson
Ok, when following the document
http://assets.nagios.com/downloads/nagi ... ios_XI.pdf

Did you add the LibAdd item to the /etc/mrtg/mrtg.cfg as described on page 2?
dmanem wrote: keep changing the server's time but it keeps going back to 5 hours past the present time.
This could also be an issue, is the timezone set correctly on the server?

Re: rrdcached - Graphs missing data

Posted: Fri Nov 02, 2012 9:41 am
by dmanem
Hello,

HtmlDir: /var/www/mrtg
ImageDir: /var/www/mrtg
LogFormat: rrdtool
LogDir: /var/lib/mrtg
ThreshDir: /var/lib/mrtg
LibAdd /opt/rrdtool-1.4.4/lib/perl/5.10.1

I added the LibAdd in mrtg.cfg but I just followed the document. Should there be a ":" after LibAdd? /opt/rrdtool-1.4.4/lib/perl/5.10.1 is what I got as my Lib.

I set the Timezone as central using export TZ= but got to know that this command is temporary. I changed the localtime file in /etc so now the PHP time and system time are synced and the graphs are fine.

Thank you.

Re: rrdcached - Graphs missing data

Posted: Fri Nov 02, 2012 9:53 am
by lmiltchev
Should there be a ":" after LibAdd?
Yes, we missed that in the documentation. :( I will be fixing it ASAP. I am glad your graphs are working now!

Re: rrdcached - Graphs missing data

Posted: Fri Nov 02, 2012 10:41 am
by dmanem
Well the system time has been changed and the host graphs are showing the right time but my switch port graphs are still blank. I am not sure if they take time to update as they have to process data from Oct 26th.

Thank you.