Check_rrdtraf returning 0 following upgrade

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Check_rrdtraf returning 0 following upgrade

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jsharris
Posts: 123
Joined: Wed Jul 03, 2013 7:00 am

Re: Check_rrdtraf returning 0 following upgrade

Post 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.
You do not have the required permissions to view the files attached to this post.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Check_rrdtraf returning 0 following upgrade

Post 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!
jsharris
Posts: 123
Joined: Wed Jul 03, 2013 7:00 am

Re: Check_rrdtraf returning 0 following upgrade

Post by jsharris »

Attached is the output from the LANG command.
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Check_rrdtraf returning 0 following upgrade

Post 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
jsharris
Posts: 123
Joined: Wed Jul 03, 2013 7:00 am

Re: Check_rrdtraf returning 0 following upgrade

Post 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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Check_rrdtraf returning 0 following upgrade

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
jsharris
Posts: 123
Joined: Wed Jul 03, 2013 7:00 am

Re: Check_rrdtraf returning 0 following upgrade

Post 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).
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Check_rrdtraf returning 0 following upgrade

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
jsharris
Posts: 123
Joined: Wed Jul 03, 2013 7:00 am

Re: Check_rrdtraf returning 0 following upgrade

Post 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?
You do not have the required permissions to view the files attached to this post.
Locked