Difference between pages "Background:How caching works" and "Snmp"

From Linuxintro
(Difference between pages)
 
imported>ThorstenStaerk
 
Line 1: Line 1:
You know that? The longer you work with your Linux system, the bigger the memory consumption is. However, performance is not negatively affected. Looking closely at it, you see only the [http://simple.wikipedia.org/wiki/Cache cache] has grown bigger. The article writes a program that eats up all memory, then terminates with a std::bad_alloc. Before terminating, it has of course eaten up all your cache and transformed into usr memory. Then, the memory is freed and there is no more cache.
+
Trying to build an SNMP prototype
  
Hello! akcedff interesting akcedff site! I'm really like it! Very, very akcedff good!
+
SUSE Linux:
  
Very nice site!
+
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
  
  Hello! aaeebda interesting aaeebda site! I'm really like it! Very, very aaeebda good!
+
  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 =
 +
* 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