What I'm doing is setting UCD-SNMP-MIB::prErrFix.1 within a script. If the condition is met it sets the above variable to 1 and triggers procfix.
Maurizio On Thu, 2005-04-28 at 07:33, Vincent AARON wrote: > Hi Mauricio > I have the same issue. > I have those three line on my snmpd configuration file. But nothing is > working. > proc ntpd > procfix ntpd /etc/rc.d/init.d/ntpd restart > defaultMonitors yes > > > Have you succeded. > What does you mean dave when you said "No. It's up to some management > program to actively make this assignment." > Vincent > > > Dave Shield wrote: > > On Tue, 2005-04-12 at 14:18, Maurizio Santini wrote: > > > > > Let me see if I got it right. What I'm trying > > > to do is using procfix to restart a service when is down > > > > > Fair enough. > > > > > > > and according > > > to snmpd.conf man page "When 1.3.6.1.4.1.2021.2.1.102 for a given NAMEd > > > program is set to the integer value of 1, this command will be called." > > > > > Correct. > > > > > > > The question is, does it get set to 1 automatically when the service > > > goes down > > > > > No. > > It's up to some management program to actively make this assignment. > > > > > > > > > or I need to configure something in snmpd.conf for procfix to > > > realize that UCD-SNMP-MIB::prErrFix.2 has been set to 1? > > > > > Just which command should be run. > > The agent will detect when this assignment is made, > > look up the corresponding procfix command, and run it. > > > > All you have to do is specify what that command should be. > > > > Dave > > > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from real users. > > Discover which products truly live up to the hype. Start reading now. > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > _______________________________________________ > > 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 > > > > > > > -- > ----------------------------------------------------------------- > | __ | Vincent Aaron. | > | | |'. | IT Administrator. | > | | | || | Mentor Graphics - Meta Systems. | > | |_|~ | 3, avenue du Canada. Bat Sigma. | > | _) (_ | 91975 Les Ulis, Courtaboeuf. | > | "" |"""""""""| | Phone : +33 1 64 86 62 24 | > | (o_ | | | Fax : +33 1 64 86 61 61 | > | //\ | Pili. | |=================================| > | V_/_ |.-------.| | Mail : [EMAIL PROTECTED]| > | " " | web : www.mentor.com | > ----------------------------------------------------------------- > "Being a Tux or not to be? That's the questions." ------------------------------------------------------- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix _______________________________________________ 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