Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun Jun 25, 2017 12:18 am

All times are UTC - 5 hours

Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: RouterConfigs Plugin Working on Ubuntu 16.04
PostPosted: Thu May 11, 2017 10:56 am 

Joined: Thu May 11, 2017 8:08 am
Posts: 1
I have successfully debugged the code on routerconfigs plugins version .3 and got it working with the latest versions of PHP7 and Mysql 5.7.17 all running on Ubuntu 16.04 64 bit. Here are the versions of my setup:

Ubuntu 16.04 64 bit
Cacti 8.8f
PA 3.1
mysql 5.7.17
PHP 7.0.15-0ubuntu0.16.04.4
RRDtool 1.5.5

I had to modify the syntax of a few of the PHP modules to support mysqli commands and other commands that were deprecated in PHP 7 and mysql5.5.


In functions.php, I had to add "mysqli_connect" for mysqli_real_escape_string to work and load the configs into mysql. It is in function plugin_routerconfigs_download_config.
$link = mysqli_connect("localhost", "root", "cacti123", "cacti");

If you keep the default password for the cacti mysql database you won't have to change it. If you deviate from the default password in the mysql cacti database, you will need to update the password in this line of the function. I'm sure there is a more fancier way, but this is what worked for me.

I have attached my zip of the updated files. Be sure to look in my tftpd-hpa-help folder.

As far as everything else, I followed the original readme except I tried to install tftp-server in the file but I couldn't get it working. So I installed tftpd-hpa and had it working in minutes.

Also, I don't think it is clear but you need to add the tables from the "routerconfigs.sql" file into the mysql cacti database.

Attachments: [69.06 KiB]
Downloaded 13 times
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group