Routerconfigs tftp server IPs

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
mikecarel
Cacti User
Posts: 68
Joined: Thu Jun 03, 2010 10:00 pm

Routerconfigs tftp server IPs

Post by mikecarel »

Hi to all;

Recently used this routerconfigsv0.5 plugins and it is very helpful, the only problem I've encountered is that it only support single tftp server IP. My cacti server have several subinterfaces monitoring different networks, having only one tftp server IP can only download config into one side of the network since you cannot statically assign static tftp server IP to each host. Resolving this limitation by adding the following:

in functions.php

132c132,135
<
---
> //test code for alt tftp server
> if (!empty($info['alttftp'])){
> $tftpserver = $info['alttftp'];
> }


in router-accounts.php
87,95d86
< "alttftp" => array(
< "method" => "textbox",
< "friendly_name" => "Alternate TFTP Server",
< "description" => "Alternate tftp server ip, if cacti have multiple interfaces, leave this blank if using the default settings.",
< "value" => "|arg1:alttftp|",
< "default" => '',
< "max_length" => "32",
< "size" => "30"
< ),
233c224
< $save['alttftp'] = sql_sanitize($_POST['alttftp']);
---
>

and in plugin_routerconfigs_accounts table by adding this field:

altftp varchar(128) default NULL


with this changes you can optionally set alternate tftp IP address under your Authentication tab if you're not using the default tftp server IP settings.

Hope this helps others with similar cacti server setup.

Thnx,

Mike
Attachments
router-accounts.tar
(20 KiB) Downloaded 253 times
functions.tar
(30 KiB) Downloaded 140 times
hid3nax
Cacti User
Posts: 68
Joined: Thu Jan 12, 2012 7:48 am

Re: Routerconfigs tftp server IPs

Post by hid3nax »

Thanks, great!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests