Cacti (home)ForumsDocumentation

This is an old revision of the document!


routerconfigs

type:
plugin
plugin:
routerconfigs
author:
cigamit
description:
Router Config Backup
version:
0.3
homepage:
http://cactiusers.org
date:
2010-07-20
license:
GPL v2
plugins:
device,
config

Download

Purpose

This plugin is for the nightly backup of Router Configs

Features

  • Nightly Backup
  • Configurable User accounts per device
  • Keeps each backup for a configurable number of days
  • Can compare and display the exact differences between any 2 configs

Prerequisites

Requires TFTP server on the Cacti box

Installation

For CentOS, just run these commands

 yum install tftp-server

Then edit the tftp startup script (/etc/xinetd.d/tftp) to change the server arguments, I used this line

 server_args		= -c -s /home/configs/backups

You will need to create this folder (or whatever folder you specify) and give the apache server and the tftp server permissions to access it. I have provided a copy of this file for you. Then we just need to turn on the tftp server so do this.

 chkconfig xinetd on
 service xinetd start

Then install just like any other plugin, just throw it in the plugin directory, in a folder called routerconfigs. Edit your includes/global.php and add it to your $plugins list. You will then want to import the SQL file

 mysql cacti < routerconfigs.sql

There are a few options in Cacti you will need to change to then get the plugin up and running. They are located under Settings » Misc » Router Configs » TFTP Server IP = The IP Address of the Cacti server given to the routers » Backup Directory Path = The directory you put in the TFTP file above

Now you should be good to go, just add an authenication account, and a device and it will download the first backup after a few pollings.

Usage

Additional Help?

If you need additional help, please goto http://forums.cacti.net

Possible Bugs?

Only Cisco IOS and CatOS Routers are currently supported. If you find a problem, let me know!!! http://cactiusers.org/bugs/

Screenshots






Personal Tools