Changing an interface on a cisco router bandwidth ifindex ?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vijilants
Posts: 215
Joined: Wed Jun 12, 2013 2:50 pm

Changing an interface on a cisco router bandwidth ifindex ?

Post 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
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Changing an interface on a cisco router bandwidth ifinde

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
vijilants
Posts: 215
Joined: Wed Jun 12, 2013 2:50 pm

Re: Changing an interface on a cisco router bandwidth ifinde

Post 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
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Changing an interface on a cisco router bandwidth ifinde

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked