Difference between pages "Analysis" and "Snmp"

From Linuxintro
(Difference between pages)
imported>ThorstenStaerk
 
imported>ThorstenStaerk
 
Line 1: Line 1:
What analysis can you do with Linux:
+
Trying to build an SNMP prototype
  
* you can [[disassemble]] a program to find out what it does
+
SUSE Linux:
* you can trace a compiled program to find out what syscalls it calls with [[strAce]]
+
 
* you can trace a [[shell script]] to find out what [[commands]] it calls by adding set -x at the script's beginning
+
yast -i nagios apache2
* you can do [[network sniffing]]
+
/etc/init.d/nagios start
* you can do [[usb bus sniffing]]
+
http://127.0.0.1/nagios
 +
log in as nagiosadmin:nagiosadmin
 +
/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
  
 
= See also =
 
= See also =
* [[areAs]]
+
* http://nagios.sourceforge.net/docs/3_0/quickstart-opensuse.html
 +
* http://net-snmp.sourceforge.net/wiki/index.php/TUT:snmptrap

Revision as of 16:46, 4 April 2014

Trying to build an SNMP prototype

SUSE Linux:

yast -i nagios apache2
/etc/init.d/nagios start
http://127.0.0.1/nagios

log in as nagiosadmin:nagiosadmin

/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

See also