[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] snmp
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] snmp
- From: Henrik Stoerner <henrik (at) hswn.dk>
- Date: Fri, 7 Mar 2008 07:34:31 +0100
- References: <001001c88014$695664f0$0500a8c0 (at) noip.org>
- User-agent: Mutt/1.5.15+20070412 (2007-04-11)
On Fri, Mar 07, 2008 at 06:30:53AM +0100, Lars Ebeling wrote:
> I would like to have an examle of the snmp configuration file:
> hobbit-snmphosts.cfg--
Here's one:
[osiris.hswn.dk]
version=2c
community=public
ip=172.16.10.100
ifmib={172.16.10.100}
# ifmib={*}
hrsystem
hrstorage=(Real Memory)
hrstorage=(Swap Space)
hrstorage=(/)
hrstorage=(/work)
hrtask=<*>
To understand how it works, you need to look at the hobbit-snmpmibs.cfg
file also. In this file you'll find an [ifmib] section that begins with
[ifmib]
keyidx (IF-MIB::ifDescr)
keyidx [IF-MIB::ifPhysAddress]
keyidx <IF-MIB::ifName>
validx {IP-MIB::ipAdEntIfIndex}
ifDescr = IF-MIB::ifDescr
Note the different kind of parentheses / brackets ? What these do is
they act like an index into the list of network interfaces. So the line
"ifmib={172.16.10.100}" means "grab the ifmib data for the network
interface whose {IP-MIB::ipAdEntIfIndex} (IP-address) is 172.16.10.100.
If you wanted the statistics from the "eth0" net-interface, you would
use "ifmib=(eth0)".
The line that just read "hrsystem" has no index, because this data
- part of the Host Ressources MIB - only has one entry globally (e.g.
there is only one count of how many users are logged on).
The "hrtask=<*>" of course means to fetch information about all of the
tasks running on the system.
Regards,
Henrik