Hi all I continue with my problem of procfix. IF I use snmpset to set UCD-SNMP-MIB::prErrFix.1 apache2 get started. I putted this command in a cron job but I can take a minute before starting apache2. That'is why I am interested on using SetEvent to set prErrFix to 1. I do not understand why a feature described in the man , does not work in reality.
Any Idea?? Thanks On Fri, Aug 1, 2008 at 12:17 PM, Osvaldo Alvarez Pozo <[EMAIL PROTECTED]> wrote: > ---------- Forwarded message ---------- > From: Osvaldo Alvarez Pozo <[EMAIL PROTECTED]> > Date: Fri, Aug 1, 2008 at 12:09 PM > Subject: Re: running a command when there is a problem with proces > To: Dave Shield <[EMAIL PROTECTED]> > > > I modified my snmpd.conf like this. > setEvent ProcessusError prErrFix = 1 > monitor -r 10 -e ProcessusError -o prNames -o prErrMessage > "procTable" prErrorFlag != 0 > > > And nothing happens, I do not get my trap either > are the "-o" and " -e" options exclusifs??? > > Thanks > > On Fri, Aug 1, 2008 at 12:45 AM, Dave Shield <[EMAIL PROTECTED]> wrote: >> 2008/7/31 Osvaldo Alvarez Pozo <[EMAIL PROTECTED]>: >>> Im am checking the apache2 proces but my procfix does not get executed >> >> You need to action this yourself - either directly: >> >> $ snmpset .... prErrFix i 1 >> >> >> or via a suitable monitor/setEvent combination: >> >> setEvent caniPressTheButtonAgain prErrFix = 1 >> monitor -e caniPressTheButtonAgain "watch the prTable" prErrorFlag != 0 >> >> (Note - not actually tested, but I think it should work) >> >> Dave >> > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users