Page 2 of 3

Re: Check_rrdtraf returning 0 following upgrade

Posted: Mon Nov 28, 2016 12:08 pm
by tgriep
First lets make a backup if this file by running the following as root.

Code: Select all

cp /etc/mrtg/conf.d/sp-stk1.cfg /tmp
To fix the duplicate entries when running the MRTG command, edit the following file

Code: Select all

/etc/mrtg/conf.d/sp-stk1.cfg
Delete everything from line 4827 to the bottom of the file, save it out and that should remove the duplicate entries for that file.

You may want to run the following to see if there are anymore duplicates in the other config files.

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
Can you upload the /etc/sudoers file from your server so we can check it's settings for the profile issue?
Thanks.

Re: Check_rrdtraf returning 0 following upgrade

Posted: Mon Nov 28, 2016 12:30 pm
by jsharris
Backed up then edited file. When running the "LANG=C..." command I get:

Code: Select all

ERROR: could not find RRDs.pm. Use LibAdd: in mrtg.cfg to help mrtg find RRDs.pm
Attached is my current (unaltered) sudoers file (changed to .txt file; forum is not allowing upload of file as is). I reverted back to a snapshot after the attempt to fix failed. Let me know if I should redo it and send the updated file.

Re: Check_rrdtraf returning 0 following upgrade

Posted: Mon Nov 28, 2016 12:46 pm
by dwhitfield
It could be an issue of it the config file not pointing to the appropriate location, but could you run yum install rrdtool-perl and then rerun the "LANG=C..." command and let us know if it has the same output. Thanks!

Re: Check_rrdtraf returning 0 following upgrade

Posted: Mon Nov 28, 2016 1:15 pm
by jsharris
Attached is the output from the LANG command.

Re: Check_rrdtraf returning 0 following upgrade

Posted: Mon Nov 28, 2016 2:47 pm
by ssax
That output looks fine, are you still getting the ERROR: could not find RRDs.pm. Use LibAdd: in mrtg.cfg to help mrtg find RRDs.pm?

If so, did you install rrdcached? You may need to re-run the setup (but only do this if you are still receiving the error above):

https://assets.nagios.com/downloads/nag ... ios_XI.pdf

Re: Check_rrdtraf returning 0 following upgrade

Posted: Tue Nov 29, 2016 6:14 am
by jsharris
That error did not come up.

Also, after the changes made yesterday (approximately 12:47pm EDT) we started getting what looks like the proper bandwidth usage values in the information returned by check_rrdtraf. However, at that time the performance graphs for the checks stopped showing new data. The graph shows 0 up to that time and then the graph is blank.

Re: Check_rrdtraf returning 0 following upgrade

Posted: Tue Nov 29, 2016 1:28 pm
by tgriep
Can you post your /usr/local/nagios/etc/nagios.cfg file so we can view it?
Lets restart some processes and see it the performance graphs start to populate.
Login as root and run the following.
service nagios stop
killall -9 nagios
service npcd restart
service nagios start
Wait about 20 minutes and see if the graphs start to populate with data.
If not, can you post these files so we can view them?

Code: Select all

/usr/local/nagios/var/npcd.log
/usr/local/nagios/var/perfdata.log
Is the application called rrdcached installed on the XI server?

Re: Check_rrdtraf returning 0 following upgrade

Posted: Tue Nov 29, 2016 1:36 pm
by jsharris
I'll give those commands a try. Since the previous changes the server has been fully restarted but this certainly can't hurt. How do I check for rrdcached? If it was necessary prior to the upgrade then yes, it is installed. However, based on what we have done so far it seems to me that an update to it may be required (like we had to do with the perl module).

Re: Check_rrdtraf returning 0 following upgrade

Posted: Tue Nov 29, 2016 1:41 pm
by tgriep
rrdcached is not installed on an Nagios XI server by default. Someone at your company would have installed it and the settings for it would be in the nagios.cfg file.
If you post that, we can see if the settings are there.
If it is installed, you can re-install it by following these instructions.

Code: Select all

https://assets.nagios.com/downloads/nagiosxi/docs/Using_rrdcached_with_Nagios_XI.pdf

Re: Check_rrdtraf returning 0 following upgrade

Posted: Tue Nov 29, 2016 1:54 pm
by jsharris
Attached is the Nagios.cfg file. I did a search through it and nothing came up in a search for rrdcached or rrd. I will check out the doc you linked.

As for it being previously installed, I was referring to how we had graphing data prior to upgrading to 5.3.2. After we upgraded we still had graphing but the data being provided to the graph was wrong. Then we updated the rrd perl module and the data was correct at the check but no graphing.


*Edit: reading the rrdcached doc and it mentions a setting in /etc/sysconfig/rrdcached. I am looking at our system now and that file is present so it seems rrdcached was installed at some point?