Upgraded nagios host o/s now swich traffic bandwidht is zero

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
stebbo
Posts: 75
Joined: Sat Aug 04, 2012 9:13 pm

Upgraded nagios host o/s now swich traffic bandwidht is zero

Post 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.
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Upgraded nagios host o/s now swich traffic bandwidht is

Post 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/?
Former Nagios Employee
Elric667
Posts: 4
Joined: Tue Sep 01, 2015 4:14 pm

Re: Upgraded nagios host o/s now swich traffic bandwidht is

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Upgraded nagios host o/s now swich traffic bandwidht is

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Elric667
Posts: 4
Joined: Tue Sep 01, 2015 4:14 pm

Re: Upgraded nagios host o/s now swich traffic bandwidht is

Post by Elric667 »

This fixed the problem thank you very very much.
stebbo
Posts: 75
Joined: Sat Aug 04, 2012 9:13 pm

Re: Upgraded nagios host o/s now swich traffic bandwidht is

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

Re: Upgraded nagios host o/s now swich traffic bandwidht is

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
stebbo
Posts: 75
Joined: Sat Aug 04, 2012 9:13 pm

Re: Upgraded nagios host o/s now swich traffic bandwidht is

Post by stebbo »

Hi tgriep,

thanks for that. I'll look into that.

Cheers,
Chris.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Upgraded nagios host o/s now swich traffic bandwidht is

Post by rkennedy »

Are we good to mark this thread as resolved?
Former Nagios Employee
Locked