Re: Delivery Status Notification (Failure)
Shashidhara <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Aug 25, 2009 at 1:40 PM, Dave Shield <[email protected]>wrote: > 2009/8/25 Shashidhara <[email protected]>: > >>Does snmpd log anything when it starts up? > > > > I was getting information about coldTrap,linkUp trap message in Log. > > That's a little bit vague. But it doesn't sound relevant to the current > problem. Can you please try the following: > > - strip down the snmpd.conf file to the bare minimum > (access control, "snmpuser" settings, trapsink, proc and monitor) > - start the agent using this config (and disman debugging) > - walk the prTable to verify that prErrorFlag is 0 > - kill off the ssh daemon > - walk the prTable to verify that prErrorFlag is now 1 > > What is the output from snmpd? > What is the full content of the snmpd.conf file? > > What does the monitoring station see? > > Dave > Thanks. I have configured minimum configuration, it works for me(Only In Linux) when i kill sshd , prErrorFlag set to 1. >What is the output from snmpd? After new configuration snmpd's o/p is :- disman:event:trigger:monitor: Running trigger (Process not running ) disman:event:delta: Bool comparison: (0 == 1) 0 disman:event:trigger:monitor: Running trigger (Process not running ) disman:event:delta: Bool comparison: (0 == 1) 0 disman:event:trigger:monitor: Running trigger (Process not running ) disman:event:delta: Bool comparison: (0 == 1) 0 disman:event:trigger:monitor: Running trigger (Process not running ) disman:event:delta: Bool comparison: (0 == 1) 0 disman:event:objects: No objects to add () disman:event:fire: Adding trigger objects (specific) disman:event:objects: Objects add (snmpd.conf, _BProcess not running ) disman:event:fire: Adding event objects (internal) disman:event:trigger:monitor: Running trigger (Process not running ) disman:event:delta: Bool comparison: (1 == 1) 1 disman:event:trigger:monitor: Running trigger (Process not running ) disman:event:trigger:monitor: Running trigger (Process not running ) disman:event:delta: Bool comparison: (1 == 1) 1 disman:event:trigger:monitor: Running trigger (Process not running ) disman:event:delta: Bool comparison: (1 == 1) 1 disman:event:trigger:monitor: Running trigger (Process not running ) disman:event:delta: Bool comparison: (1 == 1) 1 disman:event:trigger:monitor: Running trigger (Process not running ) disman:event:delta: Bool comparison: (1 == 1) 1 disman:event:trigger:monitor: Running trigger (Process not running) >What is the full content of the snmpd.conf file? My new configuration is . createUser snmpuser MD5 "snmpuser123" DES rouser snmpuser rocommunity public trapcommunity public trapsink MonitoringSystem public iquerySecName snmpuser proc sshd 1 1 monitor -r 10 -u snmpuser -o prNames -o prErrMessage "Process not running " prErrorFlag == 1 In this case "r" option for monitor is compulsary ? But with same configuration in Windows (2000 server )is not working. Here proc is "proc realplay.exe 1 1". When I Walk the prTable with realplayer is running then o/p is. UCD-SNMP-MIB::prIndex.1 = INTEGER: 1 UCD-SNMP-MIB::prNames.1 = STRING: realplay.exe UCD-SNMP-MIB::prMin.1 = INTEGER: 1 UCD-SNMP-MIB::prMax.1 = INTEGER: 1 UCD-SNMP-MIB::prCount.1 = INTEGER: -1 UCD-SNMP-MIB::prErrorFlag.1 = INTEGER: noError(0) UCD-SNMP-MIB::prErrMessage.1 = STRING: UCD-SNMP-MIB::prErrFix.1 = INTEGER: noError(0) UCD-SNMP-MIB::prErrFixCmd.1 = STRING: After stopping realplayer (realplay.exe) prTable walk o/p is : UCD-SNMP-MIB::prIndex.1 = INTEGER: 1 UCD-SNMP-MIB::prNames.1 = STRING: realplay.exe UCD-SNMP-MIB::prMin.1 = INTEGER: 1 UCD-SNMP-MIB::prMax.1 = INTEGER: 1 UCD-SNMP-MIB::prCount.1 = INTEGER: -1 UCD-SNMP-MIB::prErrorFlag.1 = INTEGER: noError(0) UCD-SNMP-MIB::prErrMessage.1 = STRING: UCD-SNMP-MIB::prErrFix.1 = INTEGER: noError(0) UCD-SNMP-MIB::prErrFixCmd.1 = STRING: In Both cases prErrorFlag is always 0. Why in Windows prTable is not Updating? And also when run snmpd in Windows I am getting following o/p. C:\net-snmp\bin>snmpd -Ddisman -a -c ..\etc\snmp\snmpd.conf No log handling enabled - turning on stderr logging registered debug token disman, 1 netsnmp_assert x failed ..\..\agent\agent_registry.c:536 netsnmp_assert x failed ..\..\agent\agent_registry.c:536 netsnmp_assert x failed ..\..\agent\agent_registry.c:536 netsnmp_assert x failed ..\..\agent\agent_registry.c:536 ..\etc\snmp\snmpd.conf: line 26: Error: Already have an entry for this process. ( For proc realplay.exe 1 1) NET-SNMP version 5.4.2 . -- Regards Shashidhara ------------------------------------------------------------------------------ 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