Can Nagios implement with Expect to automate tasks when issues arise?

dave stern - e-mail.pluribus.unum dit.dash at gmail.com
Wed Nov 14 17:53:40 CET 2007


Event handlers can take care of any common task but you need to
be careful with them. Why is a task required to be done so frequently?
Shouldn't we take care of the cause rather than the symptom?

Also, scripts that "fix" known problems can be very dangerous if
they inadvertantly run at times when a service/host looks critical
but perhaps "critical" wasn't well enough defined, particularly if
you're not using parent dependancies.  So if you do go this root
(pun intended), add in a LOT of checks to the expect script.

On Nov 14, 2007 11:27 AM, Patrick M. <patrickm at garlic.com> wrote:
> Hi all,
>
> I just learned what Expect was and wrote a few scripts to automate
> certain tasks around the office, and now I'm wondering if Expect can be
> used in conjunction with Nagios.  Is this possible?
>
> Example: One of our servers go down at least twice a day, and we know
> it's problematic.  We connect to the power strip and recycle the power
> on the port that machine is plugged in.  I'd like to use Expect to
> automate this when Nagios notices it is down.
>
> Has anyone else implemented something similar to what I'm describing?
>
> Thanks in advance.
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list