User talk:Jbilyk: Difference between revisions
(→Cacti: new section) |
(→Cacti) |
||
Line 28: | Line 28: | ||
<br /> | <br /> | ||
== Cacti == | == Cacti == | ||
Install lighttpd | Install lighttpd<br /> | ||
install php | install php<br /> | ||
install cacti | install cacti<br /> | ||
install net-snmp-tools | install net-snmp-tools<br /> | ||
soft link /usr/share/webapps/cacti to /var/www/localhost/htdocs/cacti | soft link /usr/share/webapps/cacti to /var/www/localhost/htdocs/cacti<br /> | ||
setup mysql | setup mysql<br /> | ||
mysql cacti < /usr/share/webapps/cacti/cacti.sql | mysql cacti < /usr/share/webapps/cacti/cacti.sql<br /> | ||
browse to http://localhost/cacti/ | browse to http://localhost/cacti/<br /> | ||
-> Next | -> Next | ||
-> New install, Next | -> New install, Next | ||
-> Finish | -> Finish | ||
Login using admin:admin, change password. | Login using admin:admin, change password.<br /> | ||
Add to crontab:<br /> | |||
*/5 * * * * php /var/www/localhost/cacti/poller.php > /dev/null 2>&1 |
Revision as of 13:22, 2 November 2010
This page is a work in progress ... This page is still being developed. |
Idea is to set up Nagios as an SNMP trap receiver, especially for HP Procurve switch alerts
Source: http://xavier.dusart.free.fr/joomla/index.php/en/nagios/47-traps-snmp-dans-nagios
Add packages:
nagios
nagios-web
lighttpd
net-snmp
perl
snmptt (available from edge/testing)
Create file /etc/snmp/snmptrapd.conf, and populate:
traphandle default /usr/sbin/snmptt
disableAuthorization yes
donotlogtraps yes
Edit /etc/conf.d/snmptrapd:
OPTIONS="-On -Lsd -p /var/run/snmptrapd.pid"
Start snmptrapd using init script.
Edit /etc/snmptt.ini and insert contents found at source link.
To be continued once my testing is complete :). With the config done as above, snmp traps will simply be logged to syslog since they're all unknown to snmptrapd.
== Cacti ==
Install lighttpd
install php
install cacti
install net-snmp-tools
soft link /usr/share/webapps/cacti to /var/www/localhost/htdocs/cacti
setup mysql
mysql cacti < /usr/share/webapps/cacti/cacti.sql
browse to http://localhost/cacti/
-> Next -> New install, Next -> Finish
Login using admin:admin, change password.
Add to crontab:
*/5 * * * * php /var/www/localhost/cacti/poller.php > /dev/null 2>&1