thoughts about event handlers
Stanley Hopcroft
Stanley.Hopcroft at IPAustralia.Gov.AU
Wed Jul 7 08:10:01 CEST 2004
On Tue, Jul 06, 2004 at 10:13:49PM -0700, nagios-users-request at lists.sourceforge.net wrote:
>
> Message: 5
> From: "Neil" <neil-on-nagios at restricted.dyndns.org>
> Date: Tue, 06 Jul 2004 17:20:52 -0500
> Subject: [Nagios-users] thoughts about event handlers
>
> I read the event handler section in the Nagios documentation. It looks cool.
> Here is what I am thinking on how I want to implement event handlers. Let
> say I want to check http port 80.
>
.. snip.
> Am I correct guys?
>
Yep.
We double check a providers service (to ensure access to it has not
failed because of ISP failure) by having a service event handler ssh to
another host - in a different administrative domain - and repeat the
check from there.
exit 0
unless $ARGV[1] eq 'HARD' ;
open(OUT, '>>
/home/nagios/results_of_traceroute_and_check_qwebprd_on_foo')
or die "Cannot open
\"/home/nagios/results_of_traceroute_and_check_qwebprd_on_foo\" in
append mode: $!" ;
select OUT ;
$| = 1 ;
print scalar localtime, "\n" ;
print qx'ssh stanley at foo.bar "perl/check_qwebprd; echo;
traceroute -Picmp -q1 qwebprd.questel.fr" 2>&1'
Event Handlers are very flexible.
You probably want to make sure that event handler self destructs if it
hasn't finished in less than some maximum time interval.
> Thanks.
>
> Neil
>
Yours sincerely.
--
------------------------------------------------------------------------
Stanley Hopcroft
------------------------------------------------------------------------
'...No man is an island, entire of itself; every man is a piece of the
continent, a part of the main. If a clod be washed away by the sea,
Europe is the less, as well as if a promontory were, as well as if a
manor of thy friend's or of thine own were. Any man's death diminishes
me, because I am involved in mankind; and therefore never send to know
for whom the bell tolls; it tolls for thee...'
from Meditation 17, J Donne.
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.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