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!
Network Changes to port name or OID
Re: Network Changes to port name or OID
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.
"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.
Re: Network Changes to port name or OID
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.
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.
- 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
OptimusB wrote:I would like to retain the performance history as well, which makes this a bit tricky.
GREAT news.OptimusB wrote:but I think I will still need to manually rename the RRD/XML files
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.