# 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).
-- DavidBartley