[hobbit] snmp

Henrik Stoerner henrik at hswn.dk
Fri Mar 7 07:34:31 CET 2008


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




More information about the Xymon mailing list