How to back up Cisco config files

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
chrisfritz
Posts: 23
Joined: Thu Dec 09, 2010 11:53 am

How to back up Cisco config files

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: How to back up Cisco config files

Post 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
chrisfritz
Posts: 23
Joined: Thu Dec 09, 2010 11:53 am

Re: How to back up Cisco config files

Post 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.
User avatar
niebais
Posts: 349
Joined: Tue Apr 13, 2010 2:15 pm

Re: How to back up Cisco config files

Post 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.
chrisfritz
Posts: 23
Joined: Thu Dec 09, 2010 11:53 am

Re: How to back up Cisco config files

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: How to back up Cisco config files

Post 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.
ian_couch
Posts: 15
Joined: Fri Dec 09, 2011 11:07 am

Re: How to back up Cisco config files

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: How to back up Cisco config files

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
srrhd
Posts: 131
Joined: Thu May 19, 2011 6:15 am

Re: How to back up Cisco config files

Post 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.
Configuration:
Nagios XI 2014R2.5
manually upgraded on 64bits CentOS 6
with nothing extra, no gnome, no proxy, no SSL
Add-ons: Hypermap, Minemap, Ping Action, Traceroute Action, Network Replay, Graph Explorer, Latest Alert
Locked