Page 1 of 1
How to back up Cisco config files
Posted: Wed Dec 07, 2011 7:55 pm
by chrisfritz
Hello, is there a way to back up cisco configuration files using nagiosXI? We are running NagiosXI 2011 R1.8 on CentOS 5.5. One other question is concerning plugins, if a plugin is successfully installed is it supposed to be available in the "check_command" pulldown list under "host management"? I understand you don't support 3rd party plugins but I downloaded a plugin from
http://zenhat.org/2011/03/28/nagios-plu ... s-via-snm/ and after it was successfully uploaded and permissions adjusted I still do not see it available. Thank you.
Re: How to back up Cisco config files
Posted: Thu Dec 08, 2011 12:52 pm
by mguthrie
Hello, is there a way to back up cisco configuration files using nagiosXI?
We may not have this included in our backup scripts. Where are the files located on the system?
if a plugin is successfully installed is it supposed to be available in the "check_command" pulldown list under "host management"?
For this you have to create a command definition first for the new plugin, then you can use it in a check. See the doc below:
http://assets.nagios.com/downloads/nagi ... hp#plugins
Re: How to back up Cisco config files
Posted: Thu Dec 08, 2011 3:51 pm
by chrisfritz
I am not quite sure what you mean by
"We may not have this included in our backup scripts. Where are the files located on the system?"
I want to use NagiosXI to remotely back up cisco switch configuration files. Thanks.
Re: How to back up Cisco config files
Posted: Thu Dec 08, 2011 6:29 pm
by niebais
You may have to put a little customization work into a plugin to get it to do that. However, you could create an "expect" (TCL) script to accomplish the task. I've never though of using NagiosXI to do that, but it is theoretically possible.
Re: How to back up Cisco config files
Posted: Thu Dec 08, 2011 10:29 pm
by chrisfritz
Thanks for the reply. I wish I had time to develop something, unfortunately I do not know Tcl, I may see if I can do something in Perl. Any possibilty of including such a feature in the future? Other enterprise NMS systems have network configuration management such as Solarwinds Orion NCM. Thanks.
Re: How to back up Cisco config files
Posted: Fri Dec 09, 2011 10:07 am
by mguthrie
Nagios XI is intended primarily for monitoring, not so much for the management of network devices. We don't currently have a way to backup config files on remote devices in XI. Sorry, I had misunderstood your earlier post.
Re: How to back up Cisco config files
Posted: Tue Apr 03, 2012 11:59 am
by ian_couch
Hello chrisfritz, have you made any progress with this? Our organization currently backs up cisco configs using Solarwinds, and we are investigating the possibility of moving this functionality to Nagios. I have written some Perl programs to pull information from our devices, specifically serial numbers, IOS version, and various other information, including configs (not from our nagios server). I have no idea how to create a plugin in Nagios that would incorporate this, as I'm new to the inner workings of Nagios. Maybe a plugin that allows input of various commands to various selected devices and then captures the results to a specified directory(ies) would make sense. It could run at specified intervals, say every 24 hours. I would be willing to contribute where I'm able, though my perl scripts are a pretty quick and dirty affair, someone good with it could probably make them look nice. I suppose you could create a script apart from Nagios, and just run it from the server as a cron job, but the Nagios interface could make it look good and create yet another useful facet of Nagios.
Anyone have any thoughts?
Re: How to back up Cisco config files
Posted: Tue Apr 03, 2012 12:19 pm
by scottwilkerson
ian_couch,
If you are willing to share any scripts you have to pull configs from Cisco devices by all means do so. It may be all that is needed to convert them to a plugin.
No promises but this I may be able to assist with, but having a base to start with would be useful.
Re: How to back up Cisco config files
Posted: Wed Oct 29, 2014 1:13 am
by srrhd
This is an old thread but if someone needs this functionnality, we use a plugin by SAJITHR that can be found at:
https://github.com/plutoid/Pluto-s-Airp ... onf_backup
It requires to have snmpset, snmpwalk, awk, grep and wc installed on your XI server.
It works perfectly with all our Cisco's equipments whatever they are old (except 3640) or new.