Difference between revisions of "Snmp"
From Linuxintro
imported>ThorstenStaerk |
|||
Line 5: | Line 5: | ||
yast -i nagios apache2 | yast -i nagios apache2 | ||
/etc/init.d/nagios start | /etc/init.d/nagios start | ||
− | http://127.0.0.1/nagios | + | /etc/init.d/apache2 start |
− | + | ||
+ | Remember your login nagiosadmin:nagiosadmin and point your browser to http://127.0.0.1/nagios | ||
+ | |||
/etc/init.d/snmptrapd | /etc/init.d/snmptrapd | ||
tail -f /var/log/net-snmpd.log | tail -f /var/log/net-snmpd.log |
Revision as of 09:32, 6 May 2014
Trying to build an SNMP prototype
SUSE Linux:
yast -i nagios apache2 /etc/init.d/nagios start /etc/init.d/apache2 start
Remember your login nagiosadmin:nagiosadmin and point your browser to http://127.0.0.1/nagios
/etc/init.d/snmptrapd tail -f /var/log/net-snmpd.log snmptrap -v 2c -c public localhost "" NET-SNMP-EXAMPLES-MIB::netSnmpExampleHeartbeatNotification netSnmpExampleHeartbeatRate i 42
No access configuration - dropping trap.
So it seems I have to
cat /etc/snmp/snmptrapd.conf disableAuthorization yes traphandle default /bin/snmppl
/etc/init.d/snmptrapd restart cat /bin/snmppl #!/bin/bash date >>/tmp/dates