Hi Dave,
> That's correct.
> You've got two different monitor settings:
>
> prErrorFlag == 0
> and
> prErrorFlag != 0
>
> both identified by the same index name ("proc").
> I'm suprised the previous code didn't complain about this,
> actually. Distinct monitor statements must have distinct names.
> Try
>
> monitor ..... "proc1" prErrorFlag != 0
> monitor ..... "proc2" prErrorFlag == 0
>
> instead.
Ok, got it.
> Alternatively, the new implementation also supports the syntax
>
> monitor ..... "proc" != prErrorFlag
>
> to fire on *any* change in the monitored value.
> This one entry ought to be equivalent to your previous two.
That might come handy if we switch at some point to 5.3.
> OK - please try running the agent using:
>
> snmpd -f -Le -Ddisman:event
>
> let things settle down, and then kill off "prg2".
> What debug output does the agent display?
disman:event:trigger:monitor: Running trigger (proc)
disman:event:delta: Bool comparison: (0 != 0) 0
disman:event:delta: Bool comparison: (1 != 0) 1
disman:event:trigger:fire: Firing boolean test: UCD-SNMP-MIB::prErrorFlag.2
disman:event:fire: Event fired (snmpd.conf, amendments to the 10646
s)
disman:event:fire: No matching event
disman:event:delta: Bool comparison: (0 != 0) 0
HTH & nice week-end!
Loïc.
N.B: Next reply shall come on Monday.
--
--
// Sender address goes to /dev/null (!!)
// Use my 32/64 bits, ANSI C89, compliant email-address instead:
unsigned y[]=
{0,34432,26811,16721,41866,63119,61007,48155,26147,10986};
void x(z){putchar(z);}; unsigned t;
main(i){if(i<10){t=(y[i]*47560)%65521;x(t>>8);x(t&255);main(++i);}}
NEU: Telefon-Flatrate fürs dt. Festnetz! GMX Phone_Flat: 9,99 Euro/Mon.*
Für DSL-Nutzer. Ohne Providerwechsel! http://www.gmx.net/de/go/telefonie
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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