Page 1 of 3

Performance graphs do not display any data

Posted: Thu Aug 30, 2012 3:40 pm
by mbowden
Version 2011R3.3 on RHEL6_x64

Performance graphs are not displaying any data. The graphs did work at one point however have stopped (not sure when).

I Tried this from the help page

./check_rrdtraf -f '/var/lib/mrtg/192.168.6.1_1.rrd' -w 1 -c 2 and recieve permission denied as root, checked permissions and thet are root:root rw/r/r added execute for root and reran command, this time I recieved /var/lib/mrtg/192.168.6.1_1.rrd does not exist.

system status shows Performance Grapheer running

Not sure how to troubleshoot this

Re: Performance graphs do not display any data

Posted: Thu Aug 30, 2012 4:19 pm
by lmiltchev
Do you have this file?

Code: Select all

ll /var/lib/mrtg | grep 192.168.6.1_1.rrd
See what do you have in this directory:

Code: Select all

ll /var/lib/mrtg
then run the previous command against another file, that is in this folder.

Re: Performance graphs do not display any data

Posted: Tue Sep 04, 2012 11:50 am
by mbowden
The only thing in the /var/lib/mrtg directory is mrtg.ok

Re: Performance graphs do not display any data

Posted: Tue Sep 04, 2012 1:16 pm
by lmiltchev
Run the following command and see if it is going to show any output (if everything is OK, it shouldn't):

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg -check
It seems you will have to rerun the wizard in order to create these rrd files. Please, read the following document to learn what is the proper way of doing it.

http://assets.nagios.com/downloads/nagi ... Router.pdf

Re: Performance graphs do not display any data

Posted: Tue Sep 04, 2012 1:38 pm
by mbowden
No output, simply returned

Re: Performance graphs do not display any data

Posted: Tue Sep 04, 2012 1:48 pm
by lmiltchev
Can you PM us the "/etc/mrtg/mrtg.cfg" (or e-mail it at [email protected]) so we can take a look at it?

Re: Performance graphs do not display any data

Posted: Tue Sep 04, 2012 1:56 pm
by mbowden
######################################################################
# Multi Router Traffic Grapher -- Example Configuration File
######################################################################
# This file is for use with mrtg-2.0
#
# Note:
#
# * Keywords must start at the begin of a line.
#
# * Lines which follow a keyword line which do start
# with a blank are appended to the keyword line
#
# * Empty Lines are ignored
#
# * Lines starting with a # sign are comments.

# Where should the logfiles, and webpages be created?

# Minimal mrtg.cfg
#--------------------

HtmlDir: /var/www/mrtg
ImageDir: /var/www/mrtg
LogFormat: rrdtool
LogDir: /var/lib/mrtg
ThreshDir: /var/lib/mrtg

#Target[r1]: 2:[email protected]
#MaxBytes[r1]: 1250000
#Title[r1]: Traffic Analysis
#PageTop[r1]: <H1>Stats for our Ethernet</H1>

WorkDir: /var/lib/mrtg

Re: Performance graphs do not display any data

Posted: Tue Sep 04, 2012 2:39 pm
by lmiltchev
You have only the top portion of your mrtg.cfg file (no traces of previous device configurations). I believe, you need to run:

Code: Select all

rm /usr/local/nagiosxi/tmp/mrtgscan* -f
in order to delete every single file in the nagiosxi/tmp directory that starts with mrtgscan.

Remove the host via the Core Config Manager (remove all of its services first) then re-run the wizard.

Hope this helps.

Re: Performance graphs do not display any data

Posted: Tue Sep 04, 2012 3:35 pm
by mbowden
Can you explain this a bit more please;
Remove the host via the Core Config Manager (remove all of its services first) then re-run the wizard.

Re: Performance graphs do not display any data

Posted: Tue Sep 04, 2012 4:00 pm
by lmiltchev
Before you rerun the wizard against the host under question (the one with broken perf graphs), you need to remove the "old" host and its services. In Nagios XI you remove hosts via the Core Config Manager. Please, review our documentation on the topic here (deleting hosts section):

http://assets.nagios.com/downloads/nagi ... gement.pdf

Let me know if you have any more questions.