routerconfigs multiple TFTP IP Addresses

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
DavisTasar
Posts: 2
Joined: Mon Dec 03, 2012 3:44 pm

routerconfigs multiple TFTP IP Addresses

Post by DavisTasar »

Hey everyone;

I saw a post (http://forums.cacti.net/viewtopic.php?f=14&t=46146) talking about the ability to load multiple IP Addresses for a TFTP server, which is something I need. I saved my old versions and copied over the corresponding functions.php and router-accounts.php files, and altered the DB for the new field, yet when I go to add new credentials with the new TFTP IP Address, it fails to add.

I've tried searching for where the SQL commands are referencing, because if I had to guess I'd say it's failing on insert, but I don't believe my cacti logging is working correctly, and my /var/log/mysql is empty, as is /var/log/mysql/ directory.

I'm using Cacti v.0.8.7i.

It looks like the code in the supplied router-accounts.php file only modifies the $account_edit array, and adds:

Code: Select all

        "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"
                ),
And in functions.php, it adds:

Code: Select all

 //test code for alt tftp server
        if (!empty($info['alttftp'])){
                $tftpserver = $info['alttftp'];
        }
Any help would be appreciated, as this is a feature I'd love to have (instead of having to set up multiple instances of a cacti server).
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest