Disman traps not sent when in daemon mode

Sunqiguo <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <5DE08EF8E8DA47469A24DECFFEA4EDB87F1A5AEC@SZXEMA502-MBX.china.huawei.com>
I've found the same problem like following issue, when snmpd process run in foreground it can send disman traps, but when snmpd run with -p flag it can not send disman traps:
http://sourceforge.net/p/net-snmp/bugs/2455/

Thanks in advance for any help,



Iusse 2455:
I've found an issue with Disman traps.
The OS is Debian 7.0
NET-SNMP version: 5.4.3
The relevant section of the config file is:
________________________________
trap2sink hostname.mydomain.com mycommunity
trapcommunity mycommunity
includeAllDisks 10%
load 50 25 15
createUser internal MD5 "mypassword"
iquerySecName internal
agentSecName internal
rouser internal
defaultMonitors yes
________________________________
Problem:
The snmpd process sends Disman traps when in foreground mode, but not in daemon mode.
How to reproduce:
Create a dummy filesystem and fill it up:
df -h
...
/dev/mapper/sys-traptest 7.8M 7.8M 0 100% /trap
Start the daemon:
/etc/init.d/snmpd start
The process is running like this:
snmp 20370 1 0 16:00 ? 00:00:00 /usr/sbin/snmpd -LS6d -Lf /dev/null -u snmp -g snmp -I -smux -p /var/run/snmpd.pid
Check the status of dskTable:
snmpwalk -v2c -c mycommunity localhost dskTable
(relevant lines shown only)
UCD-SNMP-MIB::dskPercent.13 = INTEGER: 100
UCD-SNMP-MIB::dskErrorFlag.13 = INTEGER: error(1)
UCD-SNMP-MIB::dskErrorMsg.13 = STRING: /trap: less than 10% free (= 100%)
ColdStart trap is received in monitoring station:
Apr 22 15:42:38 hostname snmptrapd[36680]: <UNKNOWN> [UDP: [192.168.126.164]:35505->[0.0.0.0]:0]: Trap , .1.3.6.1.2.1.1.3.0 = Timeticks: (4) 0:00:00.04, .1.3.6.1.6.3.1.1.4.1.0 = OID: .1.3.6.1.6.3.1.1.5.1, .1.3.6.1.6.3.1.1.4.3.0 = OID: .1.3.6.1.4.1.8072.3.2.10
Wait at least 10 minutes, but Disman trap is not received.
Stop the daemon, and run in foreground:
$ snmpd -f
Disman trap is immediately received in monitoring station:
Apr 22 15:43:51 hostname snmptrapd[36680]: <UNKNOWN> [UDP: [192.168.126.164]:35639->[0.0.0.0]:0]: Trap , .1.3.6.1.2.1.1.3.0 = Timeticks: (4) 0:00:00.04, .1.3.6.1.6.3.1.1.4.1.0 = OID: .1.3.6.1.2.1.88.2.0.1, .1.3.6.1.2.1.88.2.1.1.0 = STRING: dskTable, .1.3.6.1.2.1.88.2.1.2.0 = STRING: , .1.3.6.1.2.1.88.2.1.3.0 = STRING: , .1.3.6.1.2.1.88.2.1.4.0 = OID: .1.3.6.1.4.1.2021.9.1.100.13, .1.3.6.1.2.1.88.2.1.5.0 = INTEGER: 1, .1.3.6.1.4.1.2021.9.1.2.13 = STRING: /trap, .1.3.6.1.4.1.2021.9.1.101.13 = STRING: /trap: less than 10% free (= 100%)

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.