Hey,
I have snmpd.conf set up with 5 proc , 5 procfix entries. 8 exec and 1 execfix entry.
I monitored various daemon's IE: apache. The exec entries spawn shell scripts and C++ binaries.
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
If I perform a single get on all of the extResults the operation takes about 35 seconds which is fine as some of the scripts take about 8 seconds to execute.
IE: snmpget blah blah extResult.1 extResult.2 extResult.3 ..... extResult.8
If I shut down oracle it causes 3 of my scripts to return a nonzero which results in traps being sent. Several minutes later when I restore oracle and walk the extTable, I see everything is working again and eventually I see traps sent from success conditions?? I find this strange as my trap condition is "extResult != 0" and "prErrorFlag != 0"
Now if I shut down ldap 2 scripts return a nonzero but I fail to receive a trap. Now and then I will receive a non related trap from from the prTable when prErrorFlag == 0?
Running `snmpd -f -L -Dmte` initially I see
The following for all 5 prTable entries. prErrorFlag.1 -> prErrorFlag.5
mteTriggertable: Running trigger for snmpd.conf/process table
mteTriggerTable: accessing locally with secName "internal" community "[NIL]"
mteTriggerTable: got a variables: UCD-SNMP-MIB::prErrorFlag.1 = INTEGER: 0
mteTriggerTable: received UCD-SNMP-MIB::prErrorFlag.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
The following for all 8 extTable entries. extResult.1 -> extResult.8
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
Then after the first set of traps are sent when I stopped and started oracle all I
see repeatedly is the following:
mteTriggertable: Running trigger for snmpd.conf/process table
mteTriggerTable: accessing locally with secName "internal" community "[NIL]"
mteTriggerTable: got a variables: UCD-SNMP-MIB::prErrorFlag.1 = INTEGER: 0
mteTriggerTable: received UCD-SNMP-MIB::prErrorFlag.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
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
Notice prErrorFlag.2 -> prErrorFlag.5 are never evaluated again.
extResult.2 -> extResult.8 are never evaluated again. Thus a trap is never sent again....
If I walk the extTable or prTable mibs I see the failure conditions and they are never reported....
If any one has any insight I could really like to resolve this.
------------------------------------------------------- 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-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