This is an old revision of the document!
# cat /etc/redhat-release CentOS Linux release 7.0.1406 (Core) [root@monitor ~]# uname -a Linux monitor.it-sudparis.eu 3.10.0-123.20.1.el7.x86_64 #1 SMP Thu Jan 29 18:05:33 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
# yum -y install mariadb-server php php-cli php-mysql net-snmp-utils rrdtool php-snmp gcc mariadb-devel net-snmp-devel autoconf automake libtool dos2unix Résumé de la transaction Installation 14 Paquets (+33 Paquets en dépendance) Taille totale des téléchargements : 59 M Taille d'installation : 210 M
activation du service apache sous centos 7 (systemctl)
[root@monitor ~]# systemctl list-units -all | grep -i http httpd.service loaded inactive dead The Apache HTTP Server [root@monitor ~]# systemctl enable httpd.service ln -s '/usr/lib/systemd/system/httpd.service' '/etc/systemd/system/multi-user.target.wants/httpd.service' root@monitor ~]# systemctl list-units | grep -i http httpd.service loaded active running The Apache HTTP Server
ref
[root@monitor ~]# firewall-cmd --get-active-zones public interfaces: eth0 [root@monitor ~]# firewall-cmd --permanent --zone=public --add-service=http success [root@monitor ~]# firewall-cmd --reload success [root@monitor ~]# firewall-cmd --list-services dhcpv6-client http ssh [root@monitor ~]# firewall-cmd --permanent --zone=public --add-service=https success [root@monitor ~]# firewall-cmd --reload success [root@monitor ~]# firewall-cmd --list-services dhcpv6-client http https ssh
update superlink
http://forums.cacti.net/viewtopic.php?f=14&t=48245
Finally solved. mysql> drop table superlinks_auth; mysql> drop table superlinks_pages; and recreate the table manually to work CREATE TABLE superlinks_pages( id int(11) NOT NULL auto_increment, sortorder int(11) NOT NULL default 0, disabled char(2) NOT NULL default '', contentfile text NOT NULL, title text NOT NULL, style varchar(10) NOT NULL DEFAULT 'TAB', extendedstyle varchar(50) NOT NULL DEFAULT '', imagecache varchar(60) NOT NULL DEFAULT '', PRIMARY KEY (id) ) ENGINE=MyISAM; CREATE TABLE superlinks_auth ( userid mediumint(9) NOT NULL default '0', pageid int(11) NOT NULL default '0' ) ENGINE=MyISAM;
uninstall and reinstall
http://forums.cacti.net/viewtopic.php?f=14&t=45286
Just in case someone comes across this. In order to uninstall it and you cannot, then use this URL: http://<cacti-server>/cacti/plugins.php?mode=uninstall&id=superlinks
graph emtpty/ blanck after superlink install ⇒ comment jquery in plugin setup file
cf http://licanli2082.blogspot.fr/2014/12/cacti-088c-reportit-cause-graph-tree.html
[root@monit superlinks]# cp setup.php setup.php.orig [root@monit superlinks]# vim setup.php function superlinks_page_head() { global $config; // print "<script type='text/javascript' src='".$config['url_path'] ."/plugins/superlinks/jquery-latest.min.js'></script>";
cf http://forums.cacti.net/viewtopic.php?f=14&t=30823&start=15
workaround:
[root@monit superlinks]# diff superlinks.php superlinks.php.orig 53c53 < print '<iframe id="slcontent" src="' . $page['contentfile'] . '"width="100%" height="900px" frameborder="0"></iframe>'; --- > print '<iframe id="slcontent" src="' . $page['contentfile'] . '" frameborder="0"></iframe>';
[root@monit plugins]# wget http://network-weathermap.com/files/php-weathermap-0.97c.zip [root@monit plugins]# unzip php-weathermap-0.97c.zip [root@monit plugins]# cd weathermap/ [root@monit weathermap]# chown apache output/