Please refer to the April 2015 thread "How to M/A/C an interface for a Cisco router" https://support.nagios.com/forum/viewto ... 16&t=32377
So I am at another crossroads and was hoping some developments have been made since my original question in 2015. We have to do another rediscover to pick up a new interface in the Cisco router and we also have to update an existing interface description in Nagios. Have any updates been made to the router/switch wizard that would allow us to rediscover the routers and update the data?
Resurrecting How to M/A/C an interface for a Cisco router
Re: Resurrecting How to M/A/C an interface for a Cisco route
Unfortunately not, I submitted a feature request for this as well but there hasn't been any movement on it as of yet:
FR: XI - Network Switch / Router Wizard - Add re-scan or ability to re-query the device for updated ports/vlans/names/descriptions.
FR: XI - Network Switch / Router Wizard - Add re-scan or ability to re-query the device for updated ports/vlans/names/descriptions.
Re: Resurrecting How to M/A/C an interface for a Cisco route
How can we get some attention drawn to this? It seems like a super basic thing to do. Maybe the manual steps could be scripted? I posted this solution a while back and may have to see if it is still valid:
Write shell script that takes an argument (host)
rm /usr/local/nagiosxi/tmp/mrtgscan* -f
rm -f /etc/mrtg/conf.d/<hostname passed in argument+.cfg>
Then I could re-run the wizard using the same hostname and IP and I would get all of the updated information. Is that correct?
Would this keep my performance data or wipe it out?
Write shell script that takes an argument (host)
rm /usr/local/nagiosxi/tmp/mrtgscan* -f
rm -f /etc/mrtg/conf.d/<hostname passed in argument+.cfg>
Then I could re-run the wizard using the same hostname and IP and I would get all of the updated information. Is that correct?
Would this keep my performance data or wipe it out?
Re: Resurrecting How to M/A/C an interface for a Cisco route
There's not much we can do, support doesn't control the priorities of development. If you have concerns I can have a CSM reach out to you if you'd like?
The feature request has been submitted but it's just a request anyways, if you want a guarantee that it will be implemented we do offer paid custom development, if that is something you are interested in you can reach out to [email protected] to get more information/a quote.
That would keep your performance data in /usr/local/nagios/share/perfdata and also the MRTG perfdata in /var/lib/mrtg.
The feature request has been submitted but it's just a request anyways, if you want a guarantee that it will be implemented we do offer paid custom development, if that is something you are interested in you can reach out to [email protected] to get more information/a quote.
That would keep your performance data in /usr/local/nagios/share/perfdata and also the MRTG perfdata in /var/lib/mrtg.
Code: Select all
#!/bin/bash
HOSTNAME="$1"
\rm -f /usr/local/nagiosxi/tmp/mrtgscan*
\rm -f /usr/local/nagiosxi/tmp/mrtg*
\rm -f "/etc/mrtg/conf.d/$HOSTNAME.cfg"
echo "Done"
exit 0Re: Resurrecting How to M/A/C an interface for a Cisco route
For the code posted, where would I run that? I see the hostname variable so I am guessing it would run inside Nagios? Would a CSM be the best way forward or custom development?
Thanks!
Thanks!
Re: Resurrecting How to M/A/C an interface for a Cisco route
You would run it on the XI server.
If that doesn't meet your needs then paid custom development would really be the only option as the functionality you're looking for doesn't currently exist as a part of the product. Having a CSM contact you wouldn't really help in this case, it was more for them to address any comments/concerns you have with the previously submitted feature requests.
If you'd like more information on paid custom development you can reach out to [email protected].
Code: Select all
chmod +x scriptname
./scriptname HOSTNAMEIf you'd like more information on paid custom development you can reach out to [email protected].