Using NRPE to call remote event_handlers

Jason Martin jhmartin at toger.us
Mon Dec 5 03:33:53 CET 2005


On Sat, Dec 03, 2005 at 09:20:44PM +0100, Hugo van der Kooij wrote:
> > incorrectly.  I have access to all my systems, however I would like nagios
> > to automatically attempt to restart a service in the event it stops.
> > What do you do if a service stops?
Write a script for NRPE that performs the restart and invoke it
as a event handler. You may have to use passwordless SUDO to
give it the correct permissions. I suggest thinking about using
tcp wrappers or iptables, as anyone with a NRPE client could
invoke the restart script.

-Jason MArtin
> Write a monitor script and put it in a crontab entry. Run it say every 15
> minutes
> 
> Hugo.
> 

-- 
Never draw fire, it irritates everyone around you
This message is PGP/MIME signed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 211 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20051204/f388f790/attachment.sig>


More information about the Users mailing list