Network Changes to port name or OID
Posted: Fri Feb 06, 2015 2:24 pm
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!
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!