Re: Delivery Status Notification (Failure)

Shashidhara <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Mon, Aug 24, 2009 at 6:28 PM, Dave Shield <[email protected]>wrote:

> 2009/8/24 Shashidhara <[email protected]>:
> >  I want to send the snmp trap when the specified service is not running.
> > For this I have configured the snmpd.conf.
> >
> > proc sshd 1 1
> > monitor  -u snmpuser -o prNames -o prErrMessage  "sshd  not running "
> >     prErrorFlag  ==  1.
>
> Have you created the user "snmpuser"?
> Have you configured access for "snmpuser"?
>
> I'm also not convinced that this "monitor" line is correct.
> Does snmpd log anything when it starts up?
>
> Dave


Thanks for reply.

>Have you created the user "snmpuser"?
>Have you configured access for "snmpuser"?

I have created "snmpuser" and configured.

createUser snmpuser MD5  snmppwd  DES
rouser  snmpuser

>I'm also not convinced that this "monitor" line is correct.
I didnt find any fault in monitor line.

I think I have add  "r" option in monitor line.
monitor  -r 60 -u snmpuser -o prNames -o prErrMessage  "sshd  not running "
  prErrorFlag  ==  1

>Does snmpd log anything when it starts up?

I was getting information about coldTrap,linkUp trap message in Log.

After adding "r" option to  "monitor" directive.
I am getting following log message, also trap also generating.(After
stopping sshd).


disman:event:trigger:monitor: Running trigger (sshd not running )
disman:event:delta: Bool comparison: (1 == 1) 1
disman:event:trigger:monitor: Running trigger (sshd  not running )
disman:event:delta: Bool comparison: (1 == 1) 1
disman:event:trigger:monitor: Running trigger (linkUp)
disman:event:delta: Bool comparison: (1 != 2) 1
disman:event:delta: Bool comparison: (1 != 2) 1
disman:event:delta: Bool comparison: (2 != 2) 0
disman:event:trigger:monitor: Running trigger (linkDown)
disman:event:delta: Bool comparison: (1 == 2) 0
disman:event:delta: Bool comparison: (1 == 2) 0
disman:event:delta: Bool comparison: (2 == 2) 1
disman:event:trigger:monitor: Running trigger (sshd  not running)
disman:event:delta: Bool comparison: (1 == 1) 1
disman:event:trigger:monitor: Running trigger (sshd  not running)
disman:event:delta: Bool comparison: (1 == 1) 1.


But trap is not going immediately to monitoring system.









-- 
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.