Re: UCD proc agent sending alarms

2012-05-21 Thread Robert Story
On Sat, 19 May 2012 08:15:43 -0400 Douglas wrote: DH> To close this thread, one "monitor" and 2 "catchers" does work. DH> DH> monitor -r 10 -e prFixIt "procTable" prErrorFlag != 0 DH> setEvent prFixIt prErrFix = 1 DH> notificationEvent prFixIt prEntry prErrMessage prErrFixCmd prNames Thank

Re: UCD proc agent sending alarms

2012-05-19 Thread Douglas Hubler
On Tue, May 15, 2012 at 2:42 PM, Dave Shield wrote: > I've never actually tried to have one "monitor" line trigger both > types of event, but it might work.   At the very least, you could > have two monitor entries - one to send the trap, and one to > apply the fix. To close this thread, one "mon

Re: UCD proc agent sending alarms

2012-05-15 Thread Dave Shield
On 15 May 2012 17:02, Douglas Hubler wrote: > Oh right, I can either wrap my commands that restart processes with a trap > command, thanks! That should work, yes - but I don't think it's what Richard meant. The DisMan Event MIB is designed to detect "interesting" events, and: a) trigger an

Re: UCD proc agent sending alarms

2012-05-15 Thread Douglas Hubler
On May 15, 2012 10:34 AM, "Robert Story" wrote: > > DH> I'd like to trigger an alarm if a process was fixed (started when not > DH> found). Is there a clean way to do that? > > You're already half way there. You're using disman to monitor and trigger the > fix command. Just add a little more conf

Re: UCD proc agent sending alarms

2012-05-15 Thread Robert Story
DH> I'd like to trigger an alarm if a process was fixed (started when not DH> found). Is there a clean way to do that? You're already half way there. You're using disman to monitor and trigger the fix command. Just add a little more config to send a trap as well. See the active monitoring section

UCD proc agent sending alarms

2012-05-15 Thread Douglas Hubler
I'm using the UCD process MIB to manage processes together with the patch to find processes by regex https://sourceforge.net/tracker/?func=detail&aid=3525595&group_id=12694&atid=312694 I'd like to trigger an alarm if a process was fixed (started when not found). Is there a clean way to do tha