Re: Disman Traps

This is a discussion on Re: Disman Traps within the SNMP Coders forums, part of the Networking and Network Related category; On Thu, 2005-12-15 at 11:36 -0200, Wesley Naves de Faria wrote: > I added prErrorFlag == 0 but ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-15-2005
Dave Shield
 
Posts: n/a
Default Re: Disman Traps

On Thu, 2005-12-15 at 11:36 -0200, Wesley Naves de Faria wrote:
> I added prErrorFlag == 0 but i got some problems. The snmp
> always will send trap saying that process is up,


But isn't that what you were asking for?
One trap when the 'proc' entry detects a problem,
and another trap when this problem disappears?

That should be what a pair of

monitor ... prErrorFlag == 0
monitor ... prErrorFlag != 0

directives provides.
(And I've tested this with the 5.3 pre-release code,
so I'm confident that it works properly).




> so i think that i need to implemant any
> thing that keep the last state of process and send a trap
> just when this state change.


That's the third option I suggested.

> How do you think that i can do this ?


monitor ..... != prErrorFlag


> Is it possible to add
> this change in the original code of mteTriggerTable.c ?


No.
This form of expression relies on the re-written Event MIB
implementation, that is being introduced with 5.3.

There's a release candidate tarball on the project web site.
Try using that.

Dave


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:07 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0