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

Reply via email to