Page 1 of 1

Changing an interface on a cisco router bandwidth ifindex ?

Posted: Wed Jan 24, 2018 7:22 am
by vijilants
System:
Nagios XI Version : 5.4.11
londnms1 2.6.32-431.29.2.el6.i686 i686
CentOS release 6.5 (Final)
Gnome Installed

HI,

Can someone please advise on the following:

I have had to change the interface on a Cisco router.

So in Nagios via the Core Config manager , for the Status entry of the previous interface I change the if index from 1 to the new ifindex of 2 and all is good.

However when I go to change the Bandwidth statement and change it from 1 to 2, I get the following in the service status under unknown.

Code: Select all

/var/lib/mrtg/10.40.2.209_2.rrd does not exist.
It was previously 0.40.2.209_1.rrd

Can somebody please advise on a fix without having to rescan the entire router ?

Many Thanks

Vij

Re: Changing an interface on a cisco router bandwidth ifinde

Posted: Wed Jan 24, 2018 3:04 pm
by npolovenko
Hello, @vijilants. You could've just rerun the wizard to add a new interface, that doesn't modify already existing checks in XI, just adds new ones. But if you choose to rename it you need to also change the mrtg config, to add a new entry for 10.40.2.209_2.rrd. Backup the xi, and then in /etc/mrtg/mrtg.cfg copy the whole paragraph with 10.40.2.209_1.rrd entries, and in the new paragraph rename all `10.40.2.209_1.rrd` to `10.40.2.209_2.rrd`. That should fix your problem. Here's the reference: https://assets.nagios.com/downloads/nag ... 1452021427
Don't forget to backup XI either way.

Re: Changing an interface on a cisco router bandwidth ifinde

Posted: Thu Jan 25, 2018 9:46 am
by vijilants
OK ....I did this and it fixed the problem, thank you, but for some reason the application has stopped responding to SNMP traps at the same time.

Shall open a new thread

Re: Changing an interface on a cisco router bandwidth ifinde

Posted: Thu Jan 25, 2018 3:15 pm
by npolovenko
@vijilants, Yeah, I'd probably suggest to open a new thread for that. Is not receiving any traps anymore, or it just won't update the services?