> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Patrick M. > Sent: Wednesday, November 14, 2007 10:28 AM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] Can Nagios implement with Expect to automate > taskswhen issues arise? > > 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?
Yes, certainly doable. It's an Event Handler for nagios. It's a script that can be run when a host/service changes state. That script can be written in sh, bash, perl, expect, ruby, whatever... As long as you can script an action to take and run that as the nagios user, nagios can automatically run it when needed. Take a look at the Event Handler documentation for examples. -- Marc ------------------------------------------------------------------------- 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@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