widdled my snmpd.conf down to 5 exec entries and scrapped my proc entries. I still see strange behaviour....


#SECTION_EXEC#
exec oracle /opt/snmp/bin/oracle
exec ldap /opt/snmp/bin/ldap
exec tester  /tmp/tester
exec statusApache  /opt/snmp/bin/status -application apache
exec statusMod  /opt/snmp/bin/status -application apacheMod

agentSecName internal
rouser internal

monitor -r 60 -o prNames -o prErrMessage "process table" prErrorFlag != 0
monitor -r 60 -o extNames -o extOutput "status table" extResult != 0



When I start snmpd I see:

NET-SNMP version 5.1.2
mteTriggertable: Running trigger for snmpd.conf/process table
mteTriggerTable: accessing locally with secName "internal" community "[NIL]"
mteTriggerTable: got a variables: UCD-SNMP-MIB::memIndex.0 = INTEGER: 0
mteTriggerTable: DONE, last varbind processed
mteTriggertable: Running trigger for snmpd.conf/status table
mteTriggerTable: accessing locally with secName "internal" community "[NIL]"
mteTriggerTable: got a variables: UCD-SNMP-MIB::extResult.1 = INTEGER: 0
mteTriggerTable: received UCD-SNMP-MIB::extResult.1 = INTEGER: 0 (type 2)
mteTriggerTable: value: 0 0 0 x: 0 0 0
mteTriggerTable: boolean result: x=0 != configured=0 = 0
mteTriggerTable: accessing locally with secName "internal" community "[NIL]"
mteTriggerTable: got a variables: UCD-SNMP-MIB::extResult.2 = INTEGER: 0
mteTriggerTable: received UCD-SNMP-MIB::extResult.2 = INTEGER: 0 (type 2)
mteTriggerTable: value: 0 0 0 x: 0 0 0
mteTriggerTable: boolean result: x=0 != configured=0 = 0
mteTriggerTable: accessing locally with secName "internal" community "[NIL]"
mteTriggerTable: got a variables: UCD-SNMP-MIB::extResult.3 = INTEGER: 0
mteTriggerTable: received UCD-SNMP-MIB::extResult.3 = INTEGER: 0 (type 2)
mteTriggerTable: value: 0 0 0 x: 0 0 0
mteTriggerTable: boolean result: x=0 != configured=0 = 0
<snip>

* I stop oracle it causes several scripts to return non zero traps are sent.
* I restore oracle.
* Stop ldap, scripts return non zero but no traps are sent.



Console output is now:

mteTriggertable: Running trigger for snmpd.conf/status table
mteTriggerTable: accessing locally with secName "internal" community "[NIL]"
mteTriggerTable: got a variables: UCD-SNMP-MIB::extResult.1 = INTEGER: 0
mteTriggerTable: received UCD-SNMP-MIB::extResult.1 = INTEGER: 0 (type 2)
mteTriggerTable: value: 0 0 0 x: 0 0 0
mteTriggerTable: boolean result: x=0 != configured=0 = 0
mteTriggerTable: accessing locally with secName "internal" community "[NIL]"
mteTriggerTable: got a variables: SNMPv2-MIB::sysDescr.0 = STRING: SunOS ridah 5.9 Generic_112233-08 sun4u
mteTriggerTable: DONE, last varbind processed
<snip>


Notice mteTriggerTable: got a variables: SNMPv2-MIB::sysDescr.0 = STRING: SunOS ridah 5.9 Generic_112233-08 sun4u is now where "got a variables: UCD-SNMP-MIB::extResult.2 = INTEGER: 0"
used to appear.




It looks as though, something has been over written. Can anyone help with this?

I have tried stepping through the mte_run_trigger() code, but I wonder if I am in the correct place....


I have tried, compiling 5.1.1, 5.1.2, binaries from SF, I see the same behaviour on more than one solaris machine.









------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to