cacti
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | cacti [2014/11/24 01:14] (current) – created 0.0.0.0 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Cacti ====== | ||
| + | ===== Overview ===== | ||
| + | Cacti is hosted on [[Silverhold]] and can be found at http:// | ||
| + | |||
| + | You can view the graphs as a guest, by logging in with the following credentials: | ||
| + | * Username: **guest** | ||
| + | * Password: **view** | ||
| + | * Realm: **Local** | ||
| + | |||
| + | ===== Cacti ===== | ||
| + | ==== Installation ==== | ||
| + | Install cacti using portage: | ||
| + | * {{Package|direct=yes|net-analyzer/ | ||
| + | |||
| + | Portage only makes the webapp available on the system; in order to install it into a particular webroot, use < | ||
| + | {{Root|< | ||
| + | webapp-config -I -V -h cacti.sihnon.net cacti 0.8.7d | ||
| + | </ | ||
| + | |||
| + | * Create a < | ||
| + | * Create a < | ||
| + | * Install the database schema by running the following command on the web host: | ||
| + | {{Command|< | ||
| + | mysql -u cacti -p cactipass -h mysql.sihnon.net cacti_db < / | ||
| + | </ | ||
| + | *Edit the database configuration file with the correct settings (< | ||
| + | |||
| + | Install a cronjob to update the data queries | ||
| + | {{File|/ | ||
| + | */5 * * * * apache / | ||
| + | </ | ||
| + | |||
| + | Restart < | ||
| + | {{Root|< | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | Create an Apache vhost to serve cacti: | ||
| + | {{File|/ | ||
| + | < | ||
| + | ServerName " | ||
| + | DocumentRoot "/ | ||
| + | |||
| + | < | ||
| + | Options FollowSymLinks | ||
| + | AllowOverride All | ||
| + | |||
| + | Order allow,deny | ||
| + | Allow from all | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | |||
| + | - vim: set filetype=apache: | ||
| + | </ | ||
| + | |||
| + | Open the web interface in a browser, and follow the initial setup. The initial credentials are advertised by webapp-config. | ||
| + | |||
| + | ==== Configuration ==== | ||
| + | //todo// | ||
| + | |||
| + | ==== Proxy ==== | ||
| + | [[Silverhold]] doesn' | ||
| + | |||
| + | Enable < | ||
| + | |||
| + | Then create the following vhost: | ||
| + | {{File|/ | ||
| + | < | ||
| + | |||
| + | ServerName cacti.sihnon.net | ||
| + | |||
| + | ProxyRequests Off | ||
| + | |||
| + | <Proxy *> | ||
| + | Order deny,allow | ||
| + | Allow from all | ||
| + | </ | ||
| + | |||
| + | ProxyPass / http:// | ||
| + | ProxyPassReverse / http:// | ||
| + | |||
| + | </ | ||
| + | - vim: set ts=4 expandtab filetype=apache: | ||
| + | </ | ||
| + | |||
| + | Arrange for DNS to resolve internally to the cacti host, and externally to the proxy host. | ||
| + | |||
| + | Finally, restart apache to pick up the new vhost. | ||
| + | {{Root|< | ||
| + | / | ||
| + | </ | ||
| + | {{Note|You must restart rather than reload apache, else it will not pick up the PROXY define and will die}} | ||
| + | |||
| + | ===== SNMP ===== | ||
| + | ==== Installation ==== | ||
| + | Install the following package on all Gentoo machines to monitor: | ||
| + | * {{Package|direct=yes|net-analyzer/ | ||
| + | |||
| + | ==== Configuration ==== | ||
| + | Create an SNMPv3 user that cacti can use to access the statistics: | ||
| + | {{Root|< | ||
| + | net-snmp-config --create-snmpv3-user -X password -a " | ||
| + | </ | ||
| + | |||
| + | Create a very minimal SNMP configuration file: | ||
| + | {{File|/ | ||
| + | rouser cacti | ||
| + | </ | ||
| + | |||
| + | Start snmpd, and ensure it autostarts on boot: | ||
| + | {{Root|< | ||
| + | / | ||
| + | rc-update add snmpd default | ||
| + | </ | ||
cacti.txt · Last modified: by 0.0.0.0
