quick install cacti 0.8.7i and PIA 3.1 on CentOS 6.x
Moderators: Developers, Moderators
Re: quick install cacti 0.8.7i and PIA 3.1 on CentOS 6.x
Hi again,
ok, i fixed the missing plugins item - you need to activate it inside USER MANAGEMENT so that admin has permissions to manage plugins ...
but still RRDs are not generated.. ideas? Where to turn on debug logging?
best regards - asapHO
ok, i fixed the missing plugins item - you need to activate it inside USER MANAGEMENT so that admin has permissions to manage plugins ...
but still RRDs are not generated.. ideas? Where to turn on debug logging?
best regards - asapHO
Re: quick install cacti 0.8.7i and PIA 3.1 on CentOS 6.x
It's me again,
in order to get the SYSLOG Plugin working, several things need to be adjusted PRIOR on activating this plugin.
first - install rsyslog-mysql
in /etc/rsyslog.conf do the following changes (uncomment 2 lines and add the Mod ommysql):
restart rsyslog - presto... syslog is now receiving remote syslogs and get them in the database...
in order to get the SYSLOG Plugin working, several things need to be adjusted PRIOR on activating this plugin.
first - install rsyslog-mysql
Code: Select all
yum install rsyslog-mysql
Code: Select all
# Provides UDP syslog reception
$ModLoad imudp
$UDPServerRun 514
# Provides TCP syslog reception
$ModLoad imtcp
$InputTCPServerRun 514
# post into mySQL Database
$ModLoad ommysql
$template cacti_syslog,"INSERT INTO syslog_incoming(facility, priority, date, time, host, message) values (%syslogfacility%, %syslogpriority%, '%timereported:::date-mysql%', '%timereported:::date-mysql%', '%HOSTNAME%', '%msg%')", SQL
*.* >localhost,cacti,cactiuser,cactiuser;cacti_syslog
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: quick install cacti 0.8.7i and PIA 3.1 on CentOS 6.x
Goto Console -> User Management then select your user and activate the plugin management.
Then next time create a new forum entry and only reference this thread.
Then next time create a new forum entry and only reference this thread.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Re: quick install cacti 0.8.7i and PIA 3.1 on CentOS 6.x
Will there be an 8.8a update to your script? With plugins like realtime?
-
- Posts: 8
- Joined: Tue Jan 22, 2013 6:36 am
Re: quick install cacti 0.8.7i and PIA 3.1 on CentOS 6.x
Thank you great script!!
Last edited by adrenaline7 on Wed Jan 23, 2013 6:37 am, edited 1 time in total.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: quick install cacti 0.8.7i and PIA 3.1 on CentOS 6.x
Moving to HowTo section
R.
R.
-
- Posts: 8
- Joined: Tue Jan 22, 2013 6:36 am
Re: quick install cacti 0.8.7i and PIA 3.1 on CentOS 6.x
Hey guys!! I just modified the script. Now it installs cacti's 0.8.8a (which includes PIA by default!), spine 0.8.8a and plugins' last versions (there was only one plugin to be upgraded ).
I also changed the directory where to put all the files. Instead of /var/www/html, now we have /var/www/html/cacti...
When the script finishes to run, point your browser to localhost/cacti and you will be guided for the installation.
First time → user: admin, passwd: admin, then "cacti" will make you change the default passwd.
But I have to say Thank You nationals for the first version!
I also changed the directory where to put all the files. Instead of /var/www/html, now we have /var/www/html/cacti...
When the script finishes to run, point your browser to localhost/cacti and you will be guided for the installation.
First time → user: admin, passwd: admin, then "cacti" will make you change the default passwd.
Code: Select all
# !/bin/sh
# Author: adrenaline_7
# Script for install cacti 0.8.8a, spine 0.8.8a and various plugins on Centos Linux Release 6.x
# Version : 1.1
# Date : 01-23-2013
chkconfig iptables off
service iptables stop
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
/usr/sbin/setenforce 0
yum update -y
yum install -y wget
mkdir -p /usr/src/cacti
cd /usr/src/cacti
yum install -y httpd
chkconfig httpd on
service httpd start
yum install -y mysql-server
chkconfig mysqld on
service mysqld start
mysqladmin -u root password dbadmin
yum install -y php php-gd php-mysql php-cli php-ldap php-snmp php-mbstring php-mcrypt
service httpd restart
yum install -y rrdtool perl-rrdtool
yum install -y net-snmp-utils
yum install -y tftp-server
chkconfig xinetd on
service xinetd start
wget http://www.cacti.net/downloads/cacti-0.8.8a.tar.gz
tar zxvf cacti-0.8.8a.tar.gz
wget http://www.cacti.net/downloads/patches/0.8.8a/snmpv3_priv_proto_none.patch
cd cacti-0.8.8a
yum install -y patch
patch -p1 -N < ../snmpv3_priv_proto_none.patch
cd ..
mkdir /var/www/html/cacti/
mv -f cacti-0.8.8a/* /var/www/html/cacti
rm -rf cacti-0.8.8a
chown -R apache:apache /var/www/html/cacti
service httpd restart
mysql -u root -pdbadmin -e 'CREATE DATABASE `cacti` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;'
mysql -u root -pdbadmin -e "CREATE USER 'cactiuser'@'localhost' IDENTIFIED BY 'cactiuser';"
mysql -u root -pdbadmin -e 'GRANT ALL PRIVILEGES ON `cacti` . * TO 'cactiuser'@'localhost';'
mysql -u cactiuser -pcactiuser cacti < /var/www/html/cacti/cacti.sql
cat > /etc/cron.d/cacti <<EOF
*/5 * * * * apache /usr/bin/php /var/www/html/cacti/poller.php > /dev/null 2>&1
EOF
yum install -y gcc gcc-c++ make automake patch libtool net-snmp-devel openssl-devel mysql mysql-devel rsyslog-mysql
wget http://www.cacti.net/downloads/spine/cacti-spine-0.8.8a.tar.gz
tar zxvf cacti-spine-0.8.8a.tar.gz
cd cacti-spine-0.8.8a
./configure
make && make install
cp /usr/local/spine/etc/spine.conf.dist /usr/local/spine/etc/spine.conf
cd /usr/src/cacti
wget http://docs.cacti.net/_media/plugin:settings-v0.71-1.tgz -O settings.tgz
tar zxvf settings*.tgz -C /var/www/html/cacti/plugins
chown -R apache:apache /var/www/html/cacti/plugins/settings
wget http://docs.cacti.net/_media/plugin:clog-v1.7-1.tgz -O clog.tgz
tar zxvf clog*.tgz -C /var/www/html/cacti/plugins
chown -R apache:apache /var/www/html/cacti/plugins/clog
wget http://docs.cacti.net/_media/plugin:thold-v0.4.9-3.tgz -O thold.tgz
tar zxvf thold*.tgz -C /var/www/html/cacti/plugins
chown -R apache:apache /var/www/html/cacti/plugins/thold
wget http://docs.cacti.net/_media/plugin:monitor-v1.3-1.tgz -O monitor.tgz
tar zxvf monitor*.tgz -C /var/www/html/cacti/plugins
chown -R apache:apache /var/www/html/cacti/plugins/monitor
wget http://docs.cacti.net/_media/plugin:realtime-v0.5-2.tgz -O realtime.tgz
tar zxvf realtime*.tgz -C /var/www/html/cacti/plugins
mkdir -p /var/www/html/cacti/plugins/realtime/cache
chown -R apache:apache /var/www/html/cacti/plugins/realtime
yum install -y unzip
wget http://www.network-weathermap.com/files/php-weathermap-0.97a.zip
unzip php-weathermap-0.97a.zip -d /var/www/html/cacti/plugins/
chown -R apache:apache /var/www/html/cacti/plugins/weathermap
wget http://docs.cacti.net/_media/plugin:mactrack-v2.9-1.tgz -O mactrack.tgz
tar zxvf mactrack*.tgz -C /var/www/html/cacti/plugins
chown -R apache:apache /var/www/html/cacti/plugins/mactrack
wget http://docs.cacti.net/_media/plugin:syslog-v1.22-2.tgz -O syslog.tgz
tar zxvf syslog*.tgz -C /var/www/html/cacti/plugins
chown -R apache:apache /var/www/html/cacti/plugins/syslog
wget http://docs.cacti.net/_media/plugin:routerconfigs-v0.3-1.tgz -O routerconfigs.tgz
tar zxvf routerconfigs*.tgz -C /var/www/html/cacti/plugins
mkdir -p /var/www/html/cacti/plugins/routerconfigs/backups
chown -R apache:apache /var/www/html/cacti/plugins/routerconfigs
wget http://docs.cacti.net/_media/plugin:docs-v0.4-1.tgz -O docs.tgz
tar zxvf docs*.tgz -C /var/www/html/cacti/plugins
mv -f /var/www/html/plugins/docs* /var/www/html/cacti/plugins/docs
chown -R apache:apache /var/www/html/cacti/plugins/docs
wget http://nchc.dl.sourceforge.net/project/cacti-reportit/cacti-reportit/reportit_v073/reportit_v073.tar.gz -O reportit.tar.gz
tar zxvf reportit*.tar.gz -C /var/www/html/cacti/plugins
chown -R apache:apache /var/www/html/cacti/plugins/reportit
wget http://docs.cacti.net/_media/plugin:rrdclean-v0.41.tgz -O rrdclean.tgz
tar zxvf rrdclean*.tgz -C /var/www/html/cacti/plugins
chown -R apache:apache /var/www/html/cacti/plugins/rrdclean
wget http://docs.cacti.net/_media/plugin:discovery-v1.5-1.tgz -O discovery.tgz
tar zxvf discovery*.tgz -C /var/www/html/cacti/plugins
chown -R apache:apache /var/www/html/cacti/plugins/discovery
if [ "$HOSTTYPE" == "x86_64" ]; then
wget http://www6.atomicorp.com/channels/atomic/centos/6/x86_64/RPMS/wmi-1.3.14-2.el6.art.x86_64.rpm
rpm -Uvh wmi-1.3.14-2.el6.art.x86_64.rpm
elif [ "$HOSTTYPE" == "i386" ]; then
wget http://www6.atomicorp.com/channels/atomic/centos/6/i386/RPMS/wmi-1.3.14-2.el6.art.i686.rpm
rpm -Uvh wmi-1.3.14-2.el6.art.i686.rpm
fi
wget http://svn.parkingdenied.com/CactiWMI/trunk/wmi.php -O /var/www/html/cacti/scripts/wmi.php
chown -R apache:apache /var/www/html/cacti/scripts/wmi.php
service httpd restart
- Attachments
-
- cacti_0.8.8a.sh
- (5.16 KiB) Downloaded 280 times
Re: quick install cacti 0.8.7i and PIA 3.1 on CentOS 6.x
adrenaline7 wrote:Hey guys!! I just modified the script. Now it installs cacti's 0.8.8a (which includes PIA by default!), spine 0.8.8a and plugins' last versions (there was only one plugin to be upgraded ).
I also changed the directory where to put all the files. Instead of /var/www/html, now we have /var/www/html/cacti...
When the script finishes to run, point your browser to localhost/cacti and you will be guided for the installation.
First time → user: admin, passwd: admin, then "cacti" will make you change the default passwd.
But I have to say Thank You nationals for the first version!Code: Select all
# !/bin/sh # Author: adrenaline_7 # Script for install cacti 0.8.8a, spine 0.8.8a and various plugins on Centos Linux Release 6.x # Version : 1.1 # Date : 01-23-2013 chkconfig iptables off service iptables stop sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config /usr/sbin/setenforce 0 yum update -y yum install -y wget mkdir -p /usr/src/cacti cd /usr/src/cacti yum install -y httpd chkconfig httpd on service httpd start yum install -y mysql-server chkconfig mysqld on service mysqld start mysqladmin -u root password dbadmin yum install -y php php-gd php-mysql php-cli php-ldap php-snmp php-mbstring php-mcrypt service httpd restart yum install -y rrdtool perl-rrdtool yum install -y net-snmp-utils yum install -y tftp-server chkconfig xinetd on service xinetd start wget http://www.cacti.net/downloads/cacti-0.8.8a.tar.gz tar zxvf cacti-0.8.8a.tar.gz wget http://www.cacti.net/downloads/patches/0.8.8a/snmpv3_priv_proto_none.patch cd cacti-0.8.8a yum install -y patch patch -p1 -N < ../snmpv3_priv_proto_none.patch cd .. mkdir /var/www/html/cacti/ mv -f cacti-0.8.8a/* /var/www/html/cacti rm -rf cacti-0.8.8a chown -R apache:apache /var/www/html/cacti service httpd restart mysql -u root -pdbadmin -e 'CREATE DATABASE `cacti` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;' mysql -u root -pdbadmin -e "CREATE USER 'cactiuser'@'localhost' IDENTIFIED BY 'cactiuser';" mysql -u root -pdbadmin -e 'GRANT ALL PRIVILEGES ON `cacti` . * TO 'cactiuser'@'localhost';' mysql -u cactiuser -pcactiuser cacti < /var/www/html/cacti/cacti.sql cat > /etc/cron.d/cacti <<EOF */5 * * * * apache /usr/bin/php /var/www/html/cacti/poller.php > /dev/null 2>&1 EOF yum install -y gcc gcc-c++ make automake patch libtool net-snmp-devel openssl-devel mysql mysql-devel rsyslog-mysql wget http://www.cacti.net/downloads/spine/cacti-spine-0.8.8a.tar.gz tar zxvf cacti-spine-0.8.8a.tar.gz cd cacti-spine-0.8.8a ./configure make && make install cp /usr/local/spine/etc/spine.conf.dist /usr/local/spine/etc/spine.conf cd /usr/src/cacti wget http://docs.cacti.net/_media/plugin:settings-v0.71-1.tgz -O settings.tgz tar zxvf settings*.tgz -C /var/www/html/cacti/plugins chown -R apache:apache /var/www/html/cacti/plugins/settings wget http://docs.cacti.net/_media/plugin:clog-v1.7-1.tgz -O clog.tgz tar zxvf clog*.tgz -C /var/www/html/cacti/plugins chown -R apache:apache /var/www/html/cacti/plugins/clog wget http://docs.cacti.net/_media/plugin:thold-v0.4.9-3.tgz -O thold.tgz tar zxvf thold*.tgz -C /var/www/html/cacti/plugins chown -R apache:apache /var/www/html/cacti/plugins/thold wget http://docs.cacti.net/_media/plugin:monitor-v1.3-1.tgz -O monitor.tgz tar zxvf monitor*.tgz -C /var/www/html/cacti/plugins chown -R apache:apache /var/www/html/cacti/plugins/monitor wget http://docs.cacti.net/_media/plugin:realtime-v0.5-2.tgz -O realtime.tgz tar zxvf realtime*.tgz -C /var/www/html/cacti/plugins mkdir -p /var/www/html/cacti/plugins/realtime/cache chown -R apache:apache /var/www/html/cacti/plugins/realtime yum install -y unzip wget http://www.network-weathermap.com/files/php-weathermap-0.97a.zip unzip php-weathermap-0.97a.zip -d /var/www/html/cacti/plugins/ chown -R apache:apache /var/www/html/cacti/plugins/weathermap wget http://docs.cacti.net/_media/plugin:mactrack-v2.9-1.tgz -O mactrack.tgz tar zxvf mactrack*.tgz -C /var/www/html/cacti/plugins chown -R apache:apache /var/www/html/cacti/plugins/mactrack wget http://docs.cacti.net/_media/plugin:syslog-v1.22-2.tgz -O syslog.tgz tar zxvf syslog*.tgz -C /var/www/html/cacti/plugins chown -R apache:apache /var/www/html/cacti/plugins/syslog wget http://docs.cacti.net/_media/plugin:routerconfigs-v0.3-1.tgz -O routerconfigs.tgz tar zxvf routerconfigs*.tgz -C /var/www/html/cacti/plugins mkdir -p /var/www/html/cacti/plugins/routerconfigs/backups chown -R apache:apache /var/www/html/cacti/plugins/routerconfigs wget http://docs.cacti.net/_media/plugin:docs-v0.4-1.tgz -O docs.tgz tar zxvf docs*.tgz -C /var/www/html/cacti/plugins mv -f /var/www/html/plugins/docs* /var/www/html/cacti/plugins/docs chown -R apache:apache /var/www/html/cacti/plugins/docs wget http://nchc.dl.sourceforge.net/project/cacti-reportit/cacti-reportit/reportit_v073/reportit_v073.tar.gz -O reportit.tar.gz tar zxvf reportit*.tar.gz -C /var/www/html/cacti/plugins chown -R apache:apache /var/www/html/cacti/plugins/reportit wget http://docs.cacti.net/_media/plugin:rrdclean-v0.41.tgz -O rrdclean.tgz tar zxvf rrdclean*.tgz -C /var/www/html/cacti/plugins chown -R apache:apache /var/www/html/cacti/plugins/rrdclean wget http://docs.cacti.net/_media/plugin:discovery-v1.5-1.tgz -O discovery.tgz tar zxvf discovery*.tgz -C /var/www/html/cacti/plugins chown -R apache:apache /var/www/html/cacti/plugins/discovery if [ "$HOSTTYPE" == "x86_64" ]; then wget http://www6.atomicorp.com/channels/atomic/centos/6/x86_64/RPMS/wmi-1.3.14-2.el6.art.x86_64.rpm rpm -Uvh wmi-1.3.14-2.el6.art.x86_64.rpm elif [ "$HOSTTYPE" == "i386" ]; then wget http://www6.atomicorp.com/channels/atomic/centos/6/i386/RPMS/wmi-1.3.14-2.el6.art.i686.rpm rpm -Uvh wmi-1.3.14-2.el6.art.i686.rpm fi wget http://svn.parkingdenied.com/CactiWMI/trunk/wmi.php -O /var/www/html/cacti/scripts/wmi.php chown -R apache:apache /var/www/html/cacti/scripts/wmi.php service httpd restart
- Attachments
-
- Thank you for your nice script.
I have few queries; 1. how can i aggregate multiple graphs? 2. Gigabit Ethernet port number can not show in "Graph Management, Graph Item Fields" that's why I am confused to while change In bound, Out bound data source. Thank you, oshi24bd - 01.jpg (271.51 KiB) Viewed 5206 times
- Thank you for your nice script.
Re: quick install cacti 0.8.7i and PIA 3.1 on CentOS 6.x
Wow! You are awesome!!! Thanks for saving me many more hours of figuring it out.
Re: quick install cacti 0.8.7i and PIA 3.1 on CentOS 6.x
I tried to adapt this for Ubuntu 12.04 LTS but the only thing I'm having issues with is the plugin management. I go to user management and then my user and someone posted to give them access to manage plugins. WHERE?
Who is online
Users browsing this forum: No registered users and 0 guests