Network Changes to port name or OID

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
OptimusB
Posts: 146
Joined: Mon Oct 27, 2014 10:08 pm
Location: Canada
Contact:

Network Changes to port name or OID

Post by OptimusB »

I am having a bit of a challenge in updating network port statistics. So we have MRTG graphs configured for some network interfaces on a couple NetApp Controllers. Since it does not have use the standard MIB for networking, I have created manually MRTG configs and services checks. This works really well until the controllers were updated and now the associated ports and OIDs are changed, and throwing off the MRTG graphs and stats.

Is there any easy way to update the MRTG configurations? Is there any recommended approach? I would like to retain the performance history as well, which makes this a bit tricky. I have been able to edit a few here and ther manually but it is an involved process.

Here's an example.

This is the port before: NETAPP-MIB::netifDescr.131073 = STRING: e0c
This is where the port is now: NETAPP-MIB::netifDescr.131081 = STRING: e0c

Basically in order for me to retain previous history, I am editing the MRTG cfg file in /etc/mrtg/conf.d by switching:
1. The Interface description, the OID assoicated with it, title, ifname etc.
2. Then I have to rename the RRD and XML file in /usr/local/nagios/share/perfdata/so that any new checks will be added to the previous files instead.
3. Finally updating the service checks to ensure that the description and the arguements for cehck_xi_service_mrtgtraf is pointing to the right rrd file.

(Alternatively I can change the target/setevn/maxbytes/title/pagetop IP_port value, but I think I will still need to manually rename the RRD/XML files)

This is a lot to do even for one interface change, let alone 20+. Hoping to get some suggestions on how to approach this better.

Thanks!
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Network Changes to port name or OID

Post by abrist »

Not at this time. I am sure it is scriptable, but it would require a pre-created, user-defined hash table that remaps old ports/oids to new ones. The real problem are the device manufacturers that force these types of changes on firmware updates or reboots.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
OptimusB
Posts: 146
Joined: Mon Oct 27, 2014 10:08 pm
Location: Canada
Contact:

Re: Network Changes to port name or OID

Post by OptimusB »

Thanks for the reply.
We are using this method to monitor ports on some servers (agentless) as well as NetApp controllers that might have port name and OID changes.
Sounds like scripting is the only way to get these updated for now.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Network Changes to port name or OID

Post by Box293 »

OptimusB wrote:I would like to retain the performance history as well, which makes this a bit tricky.
OptimusB wrote:but I think I will still need to manually rename the RRD/XML files
GREAT news.

My Performance Data Tool will let you import the old data into the new RRD files.

http://exchange.nagios.org/directory/Ad ... ol/details

Upload it into Nagios XI via Admin > System Extensions > Manage Components.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked