The CSCF cacti install is located on watcher.cscf and is accessible via cacti.cscf.
# cacti.cscf auto eth0:1 iface eth0:1 inet static address 129.97.15.231 netmask 255.255.255.0 network 129.97.15.0
<VirtualHost cacti.cscf> ServerName cacti.cscf.uwaterloo.ca ServerAlias cacti cacti.cscf DocumentRoot /usr/share/cacti/site # redirect to fqdn RewriteEngine On RewriteCond %{HTTP_HOST} ^cacti$|^cacti\.cscf$ [NC] RewriteRule ^(.*)$ http://cacti.cscf.uwaterloo.ca$1 [R=301,L] </VirtualHost>
You must run add_device_and_graphs.php as root (e.g. 'sudo add_device_and_graphs.php ...') on watcher.cscf.
NAME add_device_and_graphs.php SYNOPSIS add_device_and_graphs.php [options] template hostname [tree] DESCRIPTION Adds hostname to cacti and creates all relevant graphs indicated by template. Note that template may a partial string, as long as the string matches unambiguously to a single host template. If tree is specified, then the host is inserted into the graph tree. Header may be a path of partial strings, separated by forward-slashes (e.g. linux/cpu). -n=name name of device; defaults to hostname -c=community the public/read community; default UofW -v=version the snmp version; default 2 -p=port the snmp port; default 161 -i=ethX[,ethY...] list of interfaces to graph; prompt for interfaces by default -i graph all interfaces -i32 use 32-bit counters (defaults to 64-bit counters); this is needed for Solaris hosts, NetApps, and UPSes -dio=disk[,disk...] list of disks to graph disk i/o for; prompt for disks by default [The following are planned features; they are currently incomplete] -ts=sensor[,sensor...] list of temperature sensors to graph; prompt for sensors by default -fs=sensor[,sensor...] list of fan sensors to graph; prompt for sensors by default -dt=disk[,disk...] list of disks to graph temperatures for; prompt for disks by default AUTHOR Written by David Bartley (dtbartle).
NAME delete_device_and_graphs.php SYNOPSIS delete_device_and_graphs.php hostname DESCRIPTION Deletes hostname and associated graphs from cacti. AUTHOR Written by David Bartley (dtbartle).
NAME add_combined_graph.php SYNOPSIS add_combined_graphs.php [options] title data-template[*snmp-field*snmp-value][^data-source-name] tree [source-trees ...] DESCRIPTION Adds a combined graph. The data-template argument indicates the type of data to graph (e.g. Logged in Users) and may be a partial string. The graph will be created at the specified tree. The source-tree arguments indicate which trees or hosts to include in the graph. If source-tree is a tree all children hosts will be added. -f=functions a comma-separated list of functions to include; possible functions are max, min, avg, and cur -w=width graph width -h=height graph height -r=yes|y|no|n|p|prompt whether to replace graphs with the same title; the default is to prompt when a graph with the same title is found AUTHOR Written by David Bartley (dtbartle).
Weathermap is an application that uses RRD files to make graphs of network flow. It has the ability to plugin to cacti:
wget http://www.network-weathermap.com/files/php-weathermap-0.95b.zip tar xf http://www.network-weathermap.com/download cp -a weathermap /usr/share/cacti/plugins/ cd /usr/share/cacti/site/plugins/weathermap mkdir /var/lib/weathermap mv configs /var/lib/weathermap mv output /var/lib/weathermap chown www-data:www-data /var/lib/weathermap/*:w ln -s /var/lib/weathermap/configs configs ln -s /var/lib/weathermap/output output vim ../../include/global.php After $plugins = array(); add: $plugins[] = 'weathermap';
User permissions must now be configured. To this goto https://cacti.cscf.uwaterloo.ca/user_admin.php. You will need to go into each user, and set the relevant realm permissions. You should now have a Weathermaps entry on the menu and Weathermap tab.
-- DavidBartley