# Get some Cacti "Plug-Ins"
installed and working!

# Settings plug-in
cd /usr/src
fetch http://cactiusers.org/downloads/settings.tar.gz
tar xvf settings.tar.gz -C /opt/apache/htdocs/cacti/plugins/
# Add the plug-in to the array
vi /opt/apache/htdocs/cacti/include/global.php
# Reset file permissions
chown -R www:www /opt/apache/htdocs
# Log in to your Cacti web interface and verify that
the plug-in is working.
# Note: Many plug-ins require you to allow permission for each web
user to view and use the new plug-in.
# From the
Cacti web interface, Click the "Console" tab then click "User
Management" and pick the user of your choice and verify the check
boxes

# Hostinfo plug-in
cd /usr/src
fetch http://cactiusers.org/downloads/hostinfo.tar.gz
tar xvf hostinfo.tar.gz -C /opt/apache/htdocs/cacti/plugins/
# Add the plug-in to the array
vi /opt/apache/htdocs/cacti/include/global.php
# Reset file permissions
chown -R www:www /opt/apache/htdocs
# Log in to your Cacti web interface and verify that
the plug-in is working.
# Note: Many plug-ins require you to allow permission for each web
user to view and use the new plug-in.
# From the
Cacti web interface, Click the "Console" tab then click "User
Management" and pick the user of your choice and verify the check
boxes

# Discovery plug-in
cd /usr/src
fetch
http://cactiusers.org/downloads/discovery.tar.gz
tar xvf discovery.tar.gz -C /opt/apache/htdocs/cacti/plugins/
# Add the plug-in to the array
vi /opt/apache/htdocs/cacti/include/global.php
# Reset file permissions
chown -R www:www /opt/apache/htdocs
# Log in to your Cacti web interface and verify that
the plug-in is working.
# Note: Many plug-ins require you to allow permission for each web
user to view and use the new plug-in.
# From the
Cacti web interface, Click the "Console" tab then click "User
Management" and pick the user of your choice and verify the check
boxes

# Devices plug-in
cd /usr/src
fetch http://wotsit.thingy.com/haj/cacti/devices-0.4.zip
unzip devices-0.4.zip
mv devices /opt/apache/htdocs/cacti/plugins/
# Add the plug-in to the array
vi /opt/apache/htdocs/cacti/include/global.php
# Reset file permissions
chown -R www:www /opt/apache/htdocs
# Log in to your Cacti web interface and verify that
the plug-in is working.
# Note: Many plug-ins require you to allow permission for each web
user to view and use the new plug-in.
# From the
Cacti web interface, Click the "Console" tab then click "User
Management" and pick the user of your choice and verify the check
boxes

# Superlinks plug-in
cd /usr/src
fetch
http://wotsit.thingy.com/haj/cacti/superlinks-0.72.zip
unzip superlinks-0.72.zip
mv superlinks /opt/apache/htdocs/cacti/plugins/
# Add the plug-in to the array
vi /opt/apache/htdocs/cacti/include/global.php
# Reset file permissions
chown -R www:www /opt/apache/htdocs
# Log in to your Cacti web interface and verify that
the plug-in is working.
# Note: Many plug-ins require you to allow permission for each web
user to view and use the new plug-in.
# From the
Cacti web interface, Click the "Console" tab then click "User
Management" and pick the user of your choice and verify the check
boxes

# Update plug-in
cd /usr/src
fetch
http://cactiusers.org/downloads/update.tar.gz
tar xvf update.tar.gz -C /opt/apache/htdocs/cacti/plugins/
# Add the plug-in to the array
vi /opt/apache/htdocs/cacti/include/global.php
# Reset file permissions
chown -R www:www /opt/apache/htdocs
# Log in to your Cacti web interface and verify that
the plug-in is working.
# Note: Many plug-ins require you to allow permission for each web
user to view and use the new plug-in.
# From the
Cacti web interface, Click the "Console" tab then click "User
Management" and pick the user of your choice and verify the check
boxes

# Tools plug-in (Network Tools)
cd /usr/src
fetch
http://cactiusers.org/downloads/tools.tar.gz
tar xvf tools.tar.gz -C /opt/apache/htdocs/cacti/plugins/
# Add the plug-in to the array
vi /opt/apache/htdocs/cacti/include/global.php
# Reset file permissions
chown -R www:www /opt/apache/htdocs
# Log in to your Cacti web interface and verify that
the plug-in is working.
# Note: Many plug-ins require you to allow permission for each web
user to view and use the new plug-in.
# From the
Cacti web interface, Click the "Console" tab then click "User
Management" and pick the user of your choice and verify the check
boxes

# Monitor plug-in
cd /usr/src
fetch
http://cactiusers.org/downloads/monitor.tar.gz
tar xvf monitor.tar.gz -C /opt/apache/htdocs/cacti/plugins/
# Add the plug-in to the array
vi /opt/apache/htdocs/cacti/include/global.php
# Reset file permissions
chown -R www:www /opt/apache/htdocs
# Log in to your Cacti web interface and verify that
the plug-in is working.
# Note: Many plug-ins require you to allow permission for each web
user to view and use the new plug-in.
# From the
Cacti web interface, Click the "Console" tab then click "User
Management" and pick the user of your choice and verify the check
boxes

# Thold (Threshold) plug-in
cd /usr/src
fetch
http://cactiusers.org/downloads/thold.tar.gz
tar xvf thold.tar.gz -C /opt/apache/htdocs/cacti/plugins/
# Add the plug-in to the array
vi /opt/apache/htdocs/cacti/include/global.php
# Reset file permissions
chown -R www:www /opt/apache/htdocs
# Log in to your Cacti web interface and verify that
the plug-in is working.
# Note: Many plug-ins require you to allow permission for each web
user to view and use the new plug-in.
# From the
Cacti web interface, Click the "Console" tab then click "User
Management" and pick the user of your choice and verify the check
boxes

# Zond plug-in
cd /usr/src
wget
http://forums.cacti.net/download.php?id=11607
mv "download.php?id=11607" zond_v0.34a.tar.gz
tar xvf zond_v0.34a.tar.gz -C /opt/apache/htdocs/cacti/plugins/
# Add the plug-in to the array
vi /opt/apache/htdocs/cacti/include/global.php
# Reset file permissions
chown -R www:www /opt/apache/htdocs
# Log in to your Cacti web interface and verify that
the plug-in is working.
# Note: Many plug-ins require you to allow permission for each web
user to view and use the new plug-in.
# From the
Cacti web interface, Click the "Console" tab then click "User
Management" and pick the user of your choice and verify the check
boxes

# Manage plug-in
cd /usr/src
fetch
http://gilles.boulon.free.fr/manage/manage-0.5.1.zip
unzip manage-0.5.1.zip
mv /usr/src/manage/ /opt/apache/htdocs/cacti/plugins/
# Convert line breaks with carriage returns
cd /opt/apache/htdocs/cacti/plugins/manage
dos2unix *
cd wmi/
dos2unix *
cd ..
cd sql/
dos2unix *
cd ..
cd include/
dos2unix *
cd ..
# Apply
Streaker's fixes!
#
Some files needed to be updated with
global.php includes which are listed:
# manage_ajax.php:include_once("./include/global.php");
# manage_check.php:include(dirname(__FILE__) .
"/../../include/global.php");
# manage_debug.php:include_once("./include/global.php");
# manage.php:include_once("./include/global.php");
# poller_manage.php:include(dirname(__FILE__) .
"/../../include/global.php");
# Couple more
things:
# 1. The following line needs to be edited
in manage_check.php:
# include_once($config["base_path"] .
"/plugins/thold/thold_functions.php");
# it did read
# include_once($config["base_path"] .
"/plugins/thold/thold-functions.php");
# 2. chmod +x
poller_manage.php
needed to be done on my system to make the poller work right.
# Fix the database
# Add the plug-in to the array
vi /opt/apache/htdocs/cacti/include/global.php
# Reset file permissions
chown -R www:www /opt/apache/htdocs
# Log in to your Cacti web interface and verify that
the plug-in is working.
# Note: Many plug-ins require you to allow permission for each web
user to view and use the new plug-in.
# From the
Cacti web interface, Click the "Console" tab then click "User
Management" and pick the user of your choice and verify the check
boxes

# MAC Track plug-in
cd /usr/src
fetch http://cactiusers.org/downloads/mactrack.tar.gz
tar xvf mactrack.tar.gz -C /opt/apache/htdocs/cacti/plugins/
# Add the plug-in to the array
vi /opt/apache/htdocs/cacti/include/global.php
# Fix up the database:
cd /opt/apache/htdocs/cacti/plugins/mactrack/
dos2unix *
/opt/mysql/bin/mysql --user=root -p cacti <
/opt/apache/htdocs/cacti/plugins/mactrack/mactrack.sql.0.0.1
/usr/local/bin/php
/opt/apache/htdocs/cacti/plugins/mactrack/database_upgrade.php
# Reset file permissions
chown -R www:www /opt/apache/htdocs
# Log in to your Cacti web interface and verify that
the plug-in is working.
# Note: Many plug-ins require you to allow permission for each web
user to view and use the new plug-in.
# From the
Cacti web interface, Click the "Console" tab then click "User
Management" and pick the user of your choice and verify the check
boxes

# Aggregate plug-in
cd /usr/src
wget
http://forums.cacti.net/download.php?id=11439
mv "download.php?id=11439" aggregate-v064.tgz
tar xvf aggregate-v064.tgz -C /opt/apache/htdocs/cacti/plugins/
# Add the plug-in to the array
vi /opt/apache/htdocs/cacti/include/global.php
# Reset file permissions
chown -R www:www /opt/apache/htdocs
# Log in to your Cacti web interface and verify that
the plug-in is working.
# Note: Many plug-ins require you to allow permission for each web
user to view and use the new plug-in.
# From the
Cacti web interface, Click the "Console" tab then click "User
Management" and pick the user of your choice and verify the check
boxes

# Docs plug-in
cd /usr/src
fetch
http://cactiusers.org/downloads/docs.tar.gz
tar xvf docs.tar.gz -C /opt/apache/htdocs/cacti/plugins/
# Add the plug-in to the array
vi /opt/apache/htdocs/cacti/include/global.php
# Reset file permissions
chown -R www:www /opt/apache/htdocs
# Log in to your Cacti web interface and verify that
the plug-in is working.
# Note: Many plug-ins require you to allow permission for each web
user to view and use the new plug-in.
# From the
Cacti web interface, Click the "Console" tab then click "User
Management" and pick the user of your choice and verify the check
boxes

# RRDCleaner plug-in
cd /usr/src
wget
http://forums.cacti.net/download.php?id=10935
mv "download.php?id=10935" rrdclean-0.32.tgz
tar xvf rrdclean-0.32.tgz -C /opt/apache/htdocs/cacti/plugins/
# Add the plug-in to the array
vi /opt/apache/htdocs/cacti/include/global.php
# Reset file permissions
chown -R www:www /opt/apache/htdocs
# Log in to your Cacti web interface and verify that
the plug-in is working.
# Note: Many plug-ins require you to allow permission for each web
user to view and use the new plug-in.
# From the
Cacti web interface, Click the "Console" tab then click "User
Management" and pick the user of your choice and verify the check
boxes

# B.A.S.E. plug-in
# Prerequisite: Have a working Snort / B.A.S.E. installation
already configured and running -
Here is my FreeBSD Snort / BASE instructions!
cd /usr/src
wget
http://forums.cacti.net/download.php?id=9002
mv "download.php?id=9002" base-0.1.tar.gz
tar xvf base-0.1.tar.gz -C /opt/apache/htdocs/cacti/plugins/
mv /opt/apache/htdocs/cacti/plugins/base-0.1/base/
/opt/apache/htdocs/cacti/plugins/base/
rm -R /opt/apache/htdocs/cacti/plugins/base-0.1
# Convert to UNIX
cd /opt/apache/htdocs/cacti/plugins/base/
dos2unix *
# Hack source for FreeBSD and implement
Streaker's fixes too
vi /opt/apache/htdocs/cacti/plugins/base/base.php
# Add the plug-in to the array
vi /opt/apache/htdocs/cacti/include/global.php
# Reset file permissions
chown -R www:www /opt/apache/htdocs
# Log in to your Cacti web interface and verify that
the plug-in is working.
# Note: Many plug-ins require you to allow permission for each web
user to view and use the new plug-in.
# From the
Cacti web interface, Click the "Console" tab then click "User
Management" and pick the user of your choice and verify the check
boxes

# Instructions not yet completed!
# Boost plug-in
cd /usr/src
fetch
http://cactiusers.org/downloads/boost.tar.gz
tar
# Add the plug-in to the array
vi /opt/apache/htdocs/cacti/include/global.php
# Reset file permissions
chown -R www:www /opt/apache/htdocs
# Log in to your Cacti web interface and verify that
the plug-in is working.
# Note: Many plug-ins require you to allow permission for each web
user to view and use the new plug-in.
# From the
Cacti web interface, Click the "Console" tab then click "User
Management" and pick the user of your choice and verify the check
boxes

# Report IT plug-in
cd /usr/src
fetch
http://superb-east.dl.sourceforge.net/sourceforge/cacti-reportit/reportit_v051.tar.gz
tar xvf reportit_v051.tar.gz -C /opt/apache/htdocs/cacti/plugins/
# Add the plug-in to the array
vi /opt/apache/htdocs/cacti/include/global.php
# Reset file permissions
chown -R www:www /opt/apache/htdocs
# Log in to your Cacti web interface and verify that
the plug-in is working.
# Note: Many plug-ins require you to allow permission for each web
user to view and use the new plug-in.
# From the
Cacti web interface, Click the "Console" tab then click "User
Management" and pick the user of your choice and verify the check
boxes
# Note: Additional configuration via
the Cacti web interface is required to run this plug-in, please read
and follow the author's instructions!

# Poller Performance plug-in
cd /usr/src
wget
http://forums.cacti.net/download.php?id=8695
mv "download.php?id=8695" pollperf-v0.32.tgz
tar xvf pollperf-v0.32.tgz -C /opt/apache/htdocs/cacti/plugins/
# Update the cacti
database
# Add the plug-in to the array
vi /opt/apache/htdocs/cacti/include/global.php
# Reset file permissions
chown -R www:www /opt/apache/htdocs
# Log in to your Cacti web interface and verify that
the plug-in is working.
# Note: Many plug-ins require you to allow permission for each web
user to view and use the new plug-in.
# From the
Cacti web interface, Click the "Console" tab then click "User
Management" and pick the user of your choice and verify the check
boxes

# Instructions not yet completed!
# Configmanager plug-in
cd /usr/src
wget
http://forums.cacti.net/download.php?id=6449
mv "download.php?id=6449" configmanager0.75.zip
unzip configmanager0.75.zip
mv /usr/src/configmanager0.75
/opt/apache/htdocs/cacti/plugins/configmanager
wget
http://forums.cacti.net/download.php?id=10980
mv "download.php?id=10980" sharednetworkclass0.36.zip
unzip sharednetworkclass0.36.zip
mv /usr/src/sharednetworkclass0.36/
/opt/apache/htdocs/cacti/plugins/sharednetworkclass
cp /opt/apache/htdocs/cacti/plugins/configmanager/secure.cfg.example
/opt/apache/htdocs/cacti/plugins/configmanager/secure.cfg
cp
/opt/apache/htdocs/cacti/plugins/configmanager/securecompare.cfg.example
/opt/apache/htdocs/cacti/plugins/configmanager/securecompare.cfg
# Convert to UNIX format
cd /opt/apache/htdocs/cacti/plugins/configmanager/
dos2unix *
cd /opt/apache/htdocs/cacti/plugins/configmanager/temp
dos2unix *
cd /opt/apache/htdocs/cacti/plugins/configmanager/scripts
dos2unix *
cd /opt/apache/htdocs/cacti/plugins/configmanager/include
dos2unix *
cd /opt/apache/htdocs/cacti/plugins/configmanager/include/treeview
dos2unix *
cd /opt/apache/htdocs/cacti/plugins/configmanager/include/jscalendar
dos2unix *
cd /opt/apache/htdocs/cacti/plugins/configmanager/include/jscalendar/lang
dos2unix *
cd /opt/apache/htdocs/cacti/plugins/configmanager/html
dos2unix *
# Add the plug-in to the array
vi /opt/apache/htdocs/cacti/include/global.php
# Reset file permissions
chown -R www:www /opt/apache/htdocs
# Log in to your Cacti web interface and verify that
the plug-in is working.
# Note: Many plug-ins require you to allow permission for each web
user to view and use the new plug-in.
# From the
Cacti web interface, Click the "Console" tab then click "User
Management" and pick the user of your choice and verify the check
boxes

# Subnet Calculator plug-in
cd /usr/src
wget
http://forums.cacti.net/download.php?id=6573
mv "download.php?id=6573" ipsubnet.tar.gz
tar xvf ipsubnet.tar.gz -C /opt/apache/htdocs/cacti/plugins/
mv /opt/apache/htdocs/cacti/plugins/ipsubnet?.??
/opt/apache/htdocs/cacti/plugins/ipsubnet/
# Add the plug-in to the array
vi /opt/apache/htdocs/cacti/include/global.php
# Reset file permissions
chown -R www:www /opt/apache/htdocs
# Log in to your Cacti web interface and verify that
the plug-in is working.
# Note: Many plug-ins require you to allow permission for each web
user to view and use the new plug-in.
# From the
Cacti web interface, Click the "Console" tab then click "User
Management" and pick the user of your choice and verify the check
boxe

# Cycle plug-in
cd /usr/src
mkdir cycle
cd cycle
# Download
http://forums.cacti.net/download.php?id=10912
wget
http://forums.cacti.net/download.php?id=10912
mv "download.php?id=10912" cycle.zip
unzip cycle.zip
cd ..
mv /usr/src/cycle/ /opt/apache/htdocs/cacti/plugins/
# Fix 0.4 issue
vi /usr/opt/apache/htdocs/cacti/plugins/cycle/ajax.php
# Add this additional include line near the top:
include_once("./include/global.php");
# Add the plug-in to the array
vi /opt/apache/htdocs/cacti/include/global.php
# Reset file permissions
chown -R www:www /opt/apache/htdocs
# Log in to your Cacti web interface and verify that
the plug-in is working.
# Note: Many plug-ins require you to allow permission for each web
user to view and use the new plug-in.
# From the
Cacti web interface, Click the "Console" tab then click "User
Management" and pick the user of your choice and verify the check
boxes

# NTop plug-in
# Prerequisite: Have a working NTop installation already
configured and running -
Here
is my FreeBSD NTop instructions!
cd /usr/src
fetch http://cactiusers.org/downloads/ntop.tar.gz
tar xvf ntop.tar.gz -C /opt/apache/htdocs/cacti/plugins/
# Add the plug-in to the array
vi /opt/apache/htdocs/cacti/include/global.php
# Reset file permissions
chown -R www:www /opt/apache/htdocs
# Log in to your Cacti web interface and verify that
the plug-in is working.
# Note: Many plug-ins require you to allow permission for each web
user to view and use the new plug-in.
# From the
Cacti web interface, Click the "Console" tab then click "User
Management" and pick the user of your choice and verify the check
boxes

# Instructions not yet completed!
# Weathermap plug-in
cd /usr/src
fetch
http://www.network-weathermap.com/files/php-weathermap-0.95b.zip
unzip php-weathermap-0.95b.zip
mv weathermap /opt/apache/htdocs/cacti/plugins/weathermap
cp /opt/apache/htdocs/cacti/plugins/weathermap/editor-config.php-dist
/opt/apache/htdocs/cacti/plugins/weathermap/editor-config.php
# Edit the Weathermap configuration file
vi /opt/apache/htdocs/cacti/plugins/weathermap/editor-config.php
$cacti_base = "/opt/apache/htdocs/cacti";
$config['base_url']='http://172.28.0.12/cacti/';
# Add the plug-in to the array
vi /opt/apache/htdocs/cacti/include/global.php
# Reset file permissions
chown -R www:www /opt/apache/htdocs
# Log in to your Cacti web interface and verify that
the plug-in is working.
# Note: Many plug-ins require you to allow permission for each web
user to view and use the new plug-in.
# From the
Cacti web interface, Click the "Console" tab then click "User
Management" and pick the user of your choice and verify the check
boxes

# Syslog plug-in
(Previously known as the Haloe plug-in)
cd /usr/src
fetch
http://cactiusers.org/downloads/syslog.tar.gz
tar xvf syslog.tar.gz -C /opt/apache/htdocs/cacti/plugins/
# Configure the syslog database for the Syslog plug-in
# Create the syslog database and import the table
structures used by the Syslog Cacti plug-in
/opt/mysql/bin/mysqladmin --user=root -p create syslog
/opt/mysql/bin/mysql --user=root -p syslog < /opt/apache/htdocs/cacti/plugins/syslog/syslog.sql
# Give permission for the cacti
database user to access the syslog database tables
/opt/mysql/bin/mysql --user=root -p
mysql
GRANT ALL ON syslog.* TO cactiuser@localhost IDENTIFIED BY 'cactipassword';
GRANT ALL ON syslog.* TO cactiuser@"%" IDENTIFIED BY 'cactipassword';
flush privileges;
exit
# Also edit the Syslog configuration to access the database
vi /opt/apache/htdocs/cacti/plugins/syslog/config.php
$haloedb_username = "cactiuser";
$haloedb_password = "cactipassword";
# Add the plug-in to the array
vi /opt/apache/htdocs/cacti/include/global.php
# Reset file permissions
chown -R www:www /opt/apache/htdocs
# Complete the Syslog-NG instructions to get messages
flowing into the database
http://www.NMSWorld.com/UNIX/Syslog-NG.htm
# Log in to your Cacti web interface and verify that
the plug-in is working.
# Note: Many plug-ins require you to allow permission for each web
user to view and use the new plug-in.
# From the
Cacti web interface, Click the "Console" tab then click "User
Management" and pick the user of your choice and verify the check
boxes

# Instructions not yet completed!
# Reports plug-in
cd /usr/src
fetch http://download.cactiusers.org/downloads/reports.tar.gz
tar xvf reports.tar.gz -C /opt/apache/htdocs/cacti/plugins/
# Configure the Reports table in the cacti database
/opt/mysql/bin/mysql --user=cactiuser -p cacti <
/opt/apache/htdocs/cacti/plugins/reports/reports.sql
cactipassword
# Add the plug-in to the array
vi /opt/apache/htdocs/cacti/include/global.php
# Reset file permissions
chown -R www:www /opt/apache/htdocs
# Log in to your Cacti web interface and verify that
the plug-in is working.
# Note: Many plug-ins require you to allow permission for each web
user to view and use the new plug-in.
# From the
Cacti web interface, Click the "Console" tab then click "User
Management" and pick the user of your choice and verify the check
boxes
