I think I have found a *work around*, (work around != fix), for "montitor ..... extResult != 0" not working on solaris.
In irc I was given the idea to try extResult.1 != 0 which means a monitor entry is required for each exec entry as shown below.
exec tester1 /bin/sh /tmp/tester1
exec tester2 /bin/sh /tmp/tester2
exec tester3 /bin/sh /tmp/tester3
exec tester4 /bin/sh /tmp/tester4
exec tester5 /bin/sh /tmp/tester5
monitor -r 30 -o extNames.1 -o extOutput.1 "tester1 status" extResult.1 != 0
monitor -r 30 -o extNames.2 -o extOutput.2 "tester2 status" extResult.2 != 0
monitor -r 30 -o extNames.3 -o extOutput.3 "tester3 status" extResult.3 != 0
monitor -r 30 -o extNames.4 -o extOutput.4 "tester4 status" extResult.4 != 0
monitor -r 30 -o extNames.5 -o extOutput.5 "tester5 status" extResult.5 != 0
Initially, extResult.1 != 0 wouldn't work because mteTriggerTable code would try to perform a getnext on
extResult.1 which caused issues with the mteTriggerTable logic. If a snmpget is performed on extResult.N style entries it appears to work.
I would think using monitor .... extResult.1 != 0 would be a desirable feature.
-- Allan McIntosh
Software Designer
Atreus Systems, Inc.
613-233-1741 ext: 217 (Office)
613-233-8204 (Fax)
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
www.atreus-systems.com <http://www.atreus-systems.com/>
------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
