agent not generating linkup/down traps

"Rasanth A.K." <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
All,
I compiled net-snmp-5.3.1 by enabling disman/event-mib support. And i have
the following entries in snmpd.conf
############
createUser myuser MD5 "mypassword"
agentSecName myuser
rouser myuser
linkUpDownNotifications yes
######################

when i run snmpd ( snmpd -f -Le -d -Ddisman ), i am always getting the
following error.

disman:event:conf: Registering linkUpDown traps
disman:event:conf: Parsing disman monitor config (-r 60 -S -e _linkUp
"linkUp"   ifOperStatus != 2)
disman:event:conf: _BlinkUp: Bool (ifOperStatus, 1, 2)
/usr/local/share/snmp/snmpd.conf: line 57: Error: You must specify a default
user name using the agentSecName token

disman:event:conf: Parsing disman monitor config (-r 60 -S -e _linkDown
"linkDown" ifOperStatus == 2)
disman:event:conf: _BlinkDown: Bool (ifOperStatus, 2, 2)
/usr/local/share/snmp/snmpd.conf: line 57: Error: You must specify a default
user name using the agentSecName token



line 57 is "linkUpDownNotifications yes" in my snmpd.conf

because of the above error, the agent does not generate linkup or linkdown
events when i physically pull the cable out.

the following is what i got after querying mteEventTable.

DISMAN-EVENT-MIB::mteResourceSampleMinimum.0 = INTEGER: 1 seconds
DISMAN-EVENT-MIB::mteResourceSampleInstanceMaximum.0 = Gauge32: 0 instances
DISMAN-EVENT-MIB::mteResourceSampleInstances.0 = Gauge32: 0 instances
DISMAN-EVENT-MIB::mteResourceSampleInstancesHigh.0 = Gauge32: 0 instances
DISMAN-EVENT-MIB::mteResourceSampleInstanceLacks.0 = Counter32: 0 instances
DISMAN-EVENT-MIB::mteTriggerFailures.0 = Counter32: 0 failures
DISMAN-EVENT-MIB::mteObjectsID."_snmpd"."_linkUpDown".1 = OID:
IF-MIB::ifIndex
DISMAN-EVENT-MIB::mteObjectsID."_snmpd"."_linkUpDown".2 = OID:
IF-MIB::ifAdminStatus
DISMAN-EVENT-MIB::mteObjectsID."_snmpd"."_linkUpDown".3 = OID:
IF-MIB::ifOperStatus
DISMAN-EVENT-MIB::mteObjectsID."_snmpd"."_triggerFail".1 = OID:
DISMAN-EVENT-MIB::mteHotTrigger
DISMAN-EVENT-MIB::mteObjectsID."_snmpd"."_triggerFail".2 = OID:
DISMAN-EVENT-MIB::mteHotTargetName
DISMAN-EVENT-MIB::mteObjectsID."_snmpd"."_triggerFail".3 = OID:
DISMAN-EVENT-MIB::mteHotContextName
DISMAN-EVENT-MIB::mteObjectsID."_snmpd"."_triggerFail".4 = OID:
DISMAN-EVENT-MIB::mteHotOID
DISMAN-EVENT-MIB::mteObjectsID."_snmpd"."_triggerFail".5 = OID:
DISMAN-EVENT-MIB::mteFailedReason
DISMAN-EVENT-MIB::mteObjectsID."_snmpd"."_triggerFire".1 = OID:
DISMAN-EVENT-MIB::mteHotTrigger
DISMAN-EVENT-MIB::mteObjectsID."_snmpd"."_triggerFire".2 = OID:
DISMAN-EVENT-MIB::mteHotTargetName
DISMAN-EVENT-MIB::mteObjectsID."_snmpd"."_triggerFire".3 = OID:
DISMAN-EVENT-MIB::mteHotContextName
DISMAN-EVENT-MIB::mteObjectsID."_snmpd"."_triggerFire".4 = OID:
DISMAN-EVENT-MIB::mteHotOID
DISMAN-EVENT-MIB::mteObjectsID."_snmpd"."_triggerFire".5 = OID:
DISMAN-EVENT-MIB::mteHotValue
DISMAN-EVENT-MIB::mteObjectsIDWildcard."_snmpd"."_linkUpDown".1 = INTEGER:
true(1)
DISMAN-EVENT-MIB::mteObjectsIDWildcard."_snmpd"."_linkUpDown".2 = INTEGER:
true(1)
DISMAN-EVENT-MIB::mteObjectsIDWildcard."_snmpd"."_linkUpDown".3 = INTEGER:
true(1)
DISMAN-EVENT-MIB::mteObjectsIDWildcard."_snmpd"."_triggerFail".1 = INTEGER:
false(2)
DISMAN-EVENT-MIB::mteObjectsIDWildcard."_snmpd"."_triggerFail".2 = INTEGER:
false(2)
DISMAN-EVENT-MIB::mteObjectsIDWildcard."_snmpd"."_triggerFail".3 = INTEGER:
false(2)
DISMAN-EVENT-MIB::mteObjectsIDWildcard."_snmpd"."_triggerFail".4 = INTEGER:
false(2)
DISMAN-EVENT-MIB::mteObjectsIDWildcard."_snmpd"."_triggerFail".5 = INTEGER:
false(2)
DISMAN-EVENT-MIB::mteObjectsIDWildcard."_snmpd"."_triggerFire".1 = INTEGER:
false(2)
DISMAN-EVENT-MIB::mteObjectsIDWildcard."_snmpd"."_triggerFire".2 = INTEGER:
false(2)
DISMAN-EVENT-MIB::mteObjectsIDWildcard."_snmpd"."_triggerFire".3 = INTEGER:
false(2)
DISMAN-EVENT-MIB::mteObjectsIDWildcard."_snmpd"."_triggerFire".4 = INTEGER:
false(2)
DISMAN-EVENT-MIB::mteObjectsIDWildcard."_snmpd"."_triggerFire".5 = INTEGER:
false(2)
DISMAN-EVENT-MIB::mteObjectsEntryStatus."_snmpd"."_linkUpDown".1 = INTEGER:
active(1)
DISMAN-EVENT-MIB::mteObjectsEntryStatus."_snmpd"."_linkUpDown".2 = INTEGER:
active(1)
DISMAN-EVENT-MIB::mteObjectsEntryStatus."_snmpd"."_linkUpDown".3 = INTEGER:
active(1)
DISMAN-EVENT-MIB::mteObjectsEntryStatus."_snmpd"."_triggerFail".1 = INTEGER:
active(1)
DISMAN-EVENT-MIB::mteObjectsEntryStatus."_snmpd"."_triggerFail".2 = INTEGER:
active(1)
DISMAN-EVENT-MIB::mteObjectsEntryStatus."_snmpd"."_triggerFail".3 = INTEGER:
active(1)
DISMAN-EVENT-MIB::mteObjectsEntryStatus."_snmpd"."_triggerFail".4 = INTEGER:
active(1)
DISMAN-EVENT-MIB::mteObjectsEntryStatus."_snmpd"."_triggerFail".5 = INTEGER:
active(1)
DISMAN-EVENT-MIB::mteObjectsEntryStatus."_snmpd"."_triggerFire".1 = INTEGER:
active(1)
DISMAN-EVENT-MIB::mteObjectsEntryStatus."_snmpd"."_triggerFire".2 = INTEGER:
active(1)
DISMAN-EVENT-MIB::mteObjectsEntryStatus."_snmpd"."_triggerFire".3 = INTEGER:
active(1)
DISMAN-EVENT-MIB::mteObjectsEntryStatus."_snmpd"."_triggerFire".4 = INTEGER:
active(1)
DISMAN-EVENT-MIB::mteObjectsEntryStatus."_snmpd"."_triggerFire".5 = INTEGER:
active(1)
DISMAN-EVENT-MIB::mteEventComment."_snmpd".'_linkDown' = STRING:
DISMAN-EVENT-MIB::mteEventComment."_snmpd".'_linkUp' = STRING:
DISMAN-EVENT-MIB::mteEventComment."_snmpd".'_mteTriggerFailure' = STRING:
DISMAN-EVENT-MIB::mteEventComment."_snmpd".'_mteTriggerFalling' = STRING:
DISMAN-EVENT-MIB::mteEventComment."_snmpd".'_mteTriggerFired' = STRING:
DISMAN-EVENT-MIB::mteEventComment."_snmpd".'_mteTriggerRising' = STRING:
DISMAN-EVENT-MIB::mteEventActions."_snmpd".'_linkDown' = BITS: 80
notification(0)
DISMAN-EVENT-MIB::mteEventActions."_snmpd".'_linkUp' = BITS: 80
notification(0)
DISMAN-EVENT-MIB::mteEventActions."_snmpd".'_mteTriggerFailure' = BITS: 80
notification(0)
DISMAN-EVENT-MIB::mteEventActions."_snmpd".'_mteTriggerFalling' = BITS: 80
notification(0)
DISMAN-EVENT-MIB::mteEventActions."_snmpd".'_mteTriggerFired' = BITS: 80
notification(0)
DISMAN-EVENT-MIB::mteEventActions."_snmpd".'_mteTriggerRising' = BITS: 80
notification(0)
DISMAN-EVENT-MIB::mteEventEnabled."_snmpd".'_linkDown' = INTEGER: true(1)
DISMAN-EVENT-MIB::mteEventEnabled."_snmpd".'_linkUp' = INTEGER: true(1)
DISMAN-EVENT-MIB::mteEventEnabled."_snmpd".'_mteTriggerFailure' = INTEGER:
true(1)
DISMAN-EVENT-MIB::mteEventEnabled."_snmpd".'_mteTriggerFalling' = INTEGER:
true(1)
DISMAN-EVENT-MIB::mteEventEnabled."_snmpd".'_mteTriggerFired' = INTEGER:
true(1)
DISMAN-EVENT-MIB::mteEventEnabled."_snmpd".'_mteTriggerRising' = INTEGER:
true(1)
DISMAN-EVENT-MIB::mteEventEntryStatus."_snmpd".'_linkDown' = INTEGER:
active(1)
DISMAN-EVENT-MIB::mteEventEntryStatus."_snmpd".'_linkUp' = INTEGER:
active(1)
DISMAN-EVENT-MIB::mteEventEntryStatus."_snmpd".'_mteTriggerFailure' =
INTEGER: active(1)
DISMAN-EVENT-MIB::mteEventEntryStatus."_snmpd".'_mteTriggerFalling' =
INTEGER: active(1)
DISMAN-EVENT-MIB::mteEventEntryStatus."_snmpd".'_mteTriggerFired' = INTEGER:
active(1)
DISMAN-EVENT-MIB::mteEventEntryStatus."_snmpd".'_mteTriggerRising' =
INTEGER: active(1)
DISMAN-EVENT-MIB::mteEventNotification."_snmpd".'_linkDown' = OID:
IF-MIB::linkDown
DISMAN-EVENT-MIB::mteEventNotification."_snmpd".'_linkUp' = OID:
IF-MIB::linkUp
DISMAN-EVENT-MIB::mteEventNotification."_snmpd".'_mteTriggerFailure' = OID:
DISMAN-EVENT-MIB::mteTriggerFailure
DISMAN-EVENT-MIB::mteEventNotification."_snmpd".'_mteTriggerFalling' = OID:
DISMAN-EVENT-MIB::mteTriggerFalling
DISMAN-EVENT-MIB::mteEventNotification."_snmpd".'_mteTriggerFired' = OID:
DISMAN-EVENT-MIB::mteTriggerFired
DISMAN-EVENT-MIB::mteEventNotification."_snmpd".'_mteTriggerRising' = OID:
DISMAN-EVENT-MIB::mteTriggerRising
DISMAN-EVENT-MIB::mteEventNotificationObjectsOwner."_snmpd".'_linkDown' =
STRING: _snmpd
DISMAN-EVENT-MIB::mteEventNotificationObjectsOwner."_snmpd".'_linkUp' =
STRING: _snmpd
DISMAN-EVENT-MIB::mteEventNotificationObjectsOwner."_snmpd".'_mteTriggerFailure'
= STRING: _snmpd
DISMAN-EVENT-MIB::mteEventNotificationObjectsOwner."_snmpd".'_mteTriggerFalling'
= STRING: _snmpd
DISMAN-EVENT-MIB::mteEventNotificationObjectsOwner."_snmpd".'_mteTriggerFired'
= STRING: _snmpd
DISMAN-EVENT-MIB::mteEventNotificationObjectsOwner."_snmpd".'_mteTriggerRising'
= STRING: _snmpd
DISMAN-EVENT-MIB::mteEventNotificationObjects."_snmpd".'_linkDown' = STRING:
_linkUpDown
DISMAN-EVENT-MIB::mteEventNotificationObjects."_snmpd".'_linkUp' = STRING:
_linkUpDown
DISMAN-EVENT-MIB::mteEventNotificationObjects."_snmpd".'_mteTriggerFailure'
= STRING: _triggerFail
DISMAN-EVENT-MIB::mteEventNotificationObjects."_snmpd".'_mteTriggerFalling'
= STRING: _triggerFire
DISMAN-EVENT-MIB::mteEventNotificationObjects."_snmpd".'_mteTriggerFired' =
STRING: _triggerFire
DISMAN-EVENT-MIB::mteEventNotificationObjects."_snmpd".'_mteTriggerRising' =
STRING: _triggerFire


am i doing the configuration incorrectly?

any help will be highly appreciated.


Thanks&Regards,
Rasanth

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
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.