Page 1 of 1
Upgraded nagios host o/s now swich traffic bandwidht is zero
Posted: Mon Jul 11, 2016 4:56 am
by stebbo
Hi All,
the other day I did a yum update on the Centos VM running nagios, and ever since my switch traffic monitoring is showing 0Mbps. This is occurring on the three separate switches that I'm monitoring via SNMP.
Nagios version 5.2.5
Centos version centos-release-6-8.el6.centos.12.3.x86_64
Profile attached.
Cheers,
Chris.
Re: Upgraded nagios host o/s now swich traffic bandwidht is
Posted: Mon Jul 11, 2016 10:00 am
by rkennedy
Do you have a log of what all was updated when you ran 'yum update'?
Looking at your profile, I noticed this -
Code: Select all
Jul 11 11:30:57 nagios5 nagios: SERVICE ALERT: sonar41;Port 8 Bandwidth;UNKNOWN;SOFT;2;/var/lib/mrtg/10.174.64.41_8.rrd does not exist.
Jul 11 11:31:08 nagios5 nagios: SERVICE ALERT: sonar41;Port 9 Bandwidth;UNKNOWN;SOFT;1;/var/lib/mrtg/10.174.64.41_9.rrd does not exist.
Jul 11 11:31:12 nagios5 nagios: SERVICE ALERT: sonar41;Port 10 Bandwidth;UNKNOWN;SOFT;4;/var/lib/mrtg/10.174.64.41_10.rrd does not exist.
Jul 11 11:31:52 nagios5 nagios: SERVICE ALERT: sonar41;Port 8 Bandwidth;UNKNOWN;SOFT;3;/var/lib/mrtg/10.174.64.41_8.rrd does not exist.
Jul 11 11:32:04 nagios5 nagios: SERVICE ALERT: sonar41;Port 9 Bandwidth;UNKNOWN;SOFT;2;/var/lib/mrtg/10.174.64.41_9.rrd does not exist.
Jul 11 11:32:11 nagios5 nagios: SERVICE ALERT: sonar41;Port 10 Bandwidth;UNKNOWN;HARD;5;/var/lib/mrtg/10.174.64.41_10.rrd does not exist.
Jul 11 11:32:52 nagios5 nagios: SERVICE ALERT: sonar41;Port 8 Bandwidth;UNKNOWN;SOFT;4;/var/lib/mrtg/10.174.64.41_8.rrd does not exist.
Jul 11 11:33:05 nagios5 nagios: SERVICE ALERT: sonar41;Port 9 Bandwidth;UNKNOWN;SOFT;3;/var/lib/mrtg/10.174.64.41_9.rrd does not exist.
Jul 11 11:33:51 nagios5 nagios: SERVICE ALERT: sonar41;Port 8 Bandwidth;UNKNOWN;HARD;5;/var/lib/mrtg/10.174.64.41_8.rrd does not exist.
Jul 11 11:34:04 nagios5 nagios: SERVICE ALERT: sonar41;Port 9 Bandwidth;UNKNOWN;SOFT;4;/var/lib/mrtg/10.174.64.41_9.rrd does not exist.
Jul 11 11:35:04 nagios5 nagios: SERVICE ALERT: sonar41;Port 9 Bandwidth;UNKNOWN;HARD;5;/var/lib/mrtg/10.174.64.41_9.rrd does not exist.
Is this one of the switches that is showing 0Mbps, or is this a newly added one? What is the full output of
ls -la /var/lib/mrtg/?
Re: Upgraded nagios host o/s now swich traffic bandwidht is
Posted: Mon Jul 11, 2016 3:41 pm
by Elric667
I am having the same problem with Traffic Bandwidth being Zero after the 5.2.9 upgrade Don't know if it was a Centos with MRTG issue or the latest update that caused it to Fail.
Also Have attached my Yum Update on the Box also.
Re: Upgraded nagios host o/s now swich traffic bandwidht is
Posted: Mon Jul 11, 2016 4:00 pm
by tgriep
The problem in doing a yum upgrade, it actually downgrades the MRTG package to an older version that doesn't work with the new file format XI uses to generate the bandwidth data.
To upgrade it to the working version, follow this KB article.
https://support.nagios.com/kb/article.php?id=511
Re: Upgraded nagios host o/s now swich traffic bandwidht is
Posted: Mon Jul 11, 2016 6:56 pm
by Elric667
This fixed the problem thank you very very much.
Re: Upgraded nagios host o/s now swich traffic bandwidht is
Posted: Mon Jul 11, 2016 7:33 pm
by stebbo
Hi tgriep,
that fixed it thanks.
I did the update after reading this thread which indicated that doing a yum update was safe.
https://support.nagios.com/forum/viewto ... 16&t=39192
Is there some way to stop yum from updating the mrtg components, or should I just not do the updates?
Cheers,
Chris.
Re: Upgraded nagios host o/s now swich traffic bandwidht is
Posted: Tue Jul 12, 2016 9:08 am
by tgriep
The link below are some instructions I found that you can use to set excludes for certain packages.
http://www.tecmint.com/disable-certain- ... os-fedora/
You just have to edit the yum config files for that repo and add the "exclude= mrtg mrtg-libs" to the file.
Mrtg is usually part of the Base repo.
Re: Upgraded nagios host o/s now swich traffic bandwidht is
Posted: Thu Jul 14, 2016 6:31 pm
by stebbo
Hi tgriep,
thanks for that. I'll look into that.
Cheers,
Chris.
Re: Upgraded nagios host o/s now swich traffic bandwidht is
Posted: Fri Jul 15, 2016 9:56 am
by rkennedy
Are we good to mark this thread as resolved?