1572
Comment:
|
1576
|
Deletions are marked like this. | Additions are marked like this. |
Line 2: | Line 2: |
=SNMP on Debian= |
= SNMP on Debian = |
Line 6: | Line 5: |
==Defaults== ==Agent== |
== Defaults == == Agent == |
Line 21: | Line 18: |
==Trap server== |
== Trap server == |
SNMP on Debian
This is a first atempt at documenting various tasks I (and maybe you) want to accomplish with SNMP. It is based on my work with Debian GNU/Linux 3.1 Sarge and net-snmp 5.1.2, which comes with it by default. I find this page necessary after finding the limited way snmp is implemented by default on Debian. I suspect this is because of the multi platform nature of Debian and the tight relation between platform and SNMP (but hey, what do I know, correct me if I'm wrong).
Defaults
Agent
Starts allways by default. Listens on all interfaces, correct by adding the address you want it to listen on in /etc/default/snmpd.conf to the parameter SNMPDOPTS:
change from
SNMPDOPTS='-Lsd -Lf /dev/null -p /var/run/snmpd.pid'
to
SNMPDOPTS='-Lsd -Lf /dev/null -p /var/run/snmpd.pid 192.168.123.4'
It also listens to the smux port (199) on all interfaces, which can only be altered to listening only to localhost by recompiling. More on this later. It can be argued, with security in mind, to configure snmpd to listen only on localhost. To make it accessible over the net you would have to add tricks like a tunnel, but that goes beyond the scope of this document. Feel free to add it to this page if you know how to do it.
Trap server
Does not start by default. See /etc/default/snmpd.conf
Rebuilding
You need the following extra packages to rebuild:
libwrap0-dev lib
Overriding the default snmp packages
I
Disk usage monitoring
Process monitoring