Hi.
I am triyng to generate a snmptrap on debian etch using the package
snmpd  5.2.3-7etch2. The traps are based on disk use.But I don't find
the solution or the problem.

I added this lines to the default snmpd.conf file:

smuxsocket  127.0.0.1
com2sec readonly  default         public
trapcommunity public
trap2sink 192.168.0.9

agentSecName internal
rouser internal
 defaultMonitors yes
disk / 900000
monitor -u internal -r 5 -o dskPath.1 -o dskTotal.1 dskAvail.1
dskErrorFlag.1 > 0

but I only receive in the snmptrapd host the following lines and only
if I do a reboot.
Mar 30 14:36:38 ldap snmptrapd[1949]: 30/03/2008 14:36:38 Cold Start de 0.0.0.0
Mar 30 14:36:40 ldap snmptrapd[1949]: 30/03/2008 14:36:40 Cold Start de 0.0.0.0

if I do snmpwalk localy:
 "snmpwalk -v 1 -c public localhost .1.3.6.1.4.1.2021.9"
i get:

UCD-SNMP-MIB::dskIndex.1 = INTEGER: 1
UCD-SNMP-MIB::dskPath.1 = STRING: /
UCD-SNMP-MIB::dskDevice.1 = STRING: /dev/sda2
UCD-SNMP-MIB::dskMinimum.1 = INTEGER: 900000
UCD-SNMP-MIB::dskMinPercent.1 = INTEGER: -1
UCD-SNMP-MIB::dskTotal.1 = INTEGER: 1304468
UCD-SNMP-MIB::dskAvail.1 = INTEGER: 880664
UCD-SNMP-MIB::dskUsed.1 = INTEGER: 357540
UCD-SNMP-MIB::dskPercent.1 = INTEGER: 29
UCD-SNMP-MIB::dskPercentNode.1 = INTEGER: 11
UCD-SNMP-MIB::dskErrorFlag.1 = INTEGER: 1
UCD-SNMP-MIB::dskErrorMsg.1 = STRING: /: less than 900000 free (= 880664)

the error flag is set to 1 but this trap is never sent.

Wath is missing??
Thanks

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to