RE: setEvent

Michal Filka <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <BEE650D2F88D74448AD3E613B0C6D4E5E687C397@STS-PRG-EXM1M1.sts.sitronics.com>
I append value definition for completeness:
test	OBJECT-TYPE
		SYNTAX		Unsigned32
		MAX-ACCESS	read-write
		STATUS		current
		DESCRIPTION	"description"
	::=	{ control 2 }

Is Unsigned32 type OK for setEvent? 

It is handled in a dynamic module using netsnmp_register_ulong_instance function.

> > > MF> Aug 14 14:00:22 de-pim snmpd[12777]: Running trigger (SetMonitor)
> > > MF> Aug 14 14:00:52 de-pim snmpd[12777]: disman:event:trigger:monitor:
> > > MF> Aug 14 14:00:52 de-pim snmpd[12777]: Trigger query (walk) failed: -1
> > > MF> Aug 14 14:00:52 de-pim snmpd[12777]: failed to run mteTrigger query
> 
> I run snmpd with -Ddisman. I let it run for longer time after first unsuccessful log
> entry:
> 
> disman:event:trigger:monitor: Running trigger (SetMonitor)
> disman:event:trigger:monitor: Trigger query (walk) failed: -1
> 
> I found:
> disman:event:trigger:monitor: Running trigger (SetMonitor)
> disman:event:delta: Bool comparison: (1234 >= 1234) 1
> disman:event:trigger:fire: Firing boolean test: PIM-MIB::test.0 (startup)
> disman:event:fire: Event fired (snmpd.conf, setTranslationAlarmActive)
> disman:event:fire: Firing set event
> 
> however, the value is still unchanged and reading it using local even remote snmp
> get command returns default value not new one. I'm able to set the value manually
> as _internal user (see bellow) using snmpset.
> 
> > >
> > > Did you set agentSecName appropriately (I think you did) but did you
> > > provide that securityName access rights that include writing?  IE, did
> > > you use "rwuser" or "rouser" for it (you should have used the first)
> >
> > I have configured it this way:
> > createUser _internal MD5 ...
> > agentSecName _internal
> > rwuser _internal
> >
> > setEvent stil doesn't work, notificationEvent at same OID (and test) works fine.

Michal Filka

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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.