<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Serial interface? Alarm clock? Wow. Leave it to the EEs to whip out
a soldering iron. ;) Not that there's anything wrong with that. <br>
<br>
I'm in the process of replacing a WhatsUpGold box (that already makes
noise and has a decent pair of speakers that can be heard throughout
the entire OPS floor) with Nagios, and here's my solution to the same
problem:<br>
<br>
<tt>misccommands.cfg:<br>
define command {<br>
command_name host-notify-by-sound<br>
command_line $USER2$/notify_by_sound $HOSTSTATE$<br>
}<br>
<br>
notify_by_sound:<br>
#!/usr/bin/perl<br>
<br>
use strict;<br>
use warnings;<br>
<br>
my ($status) = @ARGV;<br>
<br>
if ($status eq "DOWN" || $status eq "UNREACHABLE")<br>
{ system("/usr/lib/nagios/plugins/check_nrpe -H
windows.box.running.nrpe-nt -c sfx_hostdown"); }<br>
else<br>
{ system("/usr/lib/nagios/plugins/check_nrpe -H
windows.box.running.nrpe-nt -c sfx_hostup"); }<br>
<br>
sfx_hostdown.cmd:<br>
@echo off<br>
sndrec32 /play /cluse "c:\nrpe\host_down.wav":<br>
echo Command completed successfully<br>
exit 0</tt><br>
<br>
HTH!<br>
<br>
Rusch, Daniel wrote:
<blockquote
cite="mid8514B8AEA269234B82EF64E707E5885005886972@nahum.mis.fotf.priv"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta content="MSHTML 6.00.2800.1505" name="GENERATOR">
<div><span class="346034320-20062005"><font face="Arial" size="2">All,</font></span></div>
<div><span class="346034320-20062005"></span> </div>
<div><span class="346034320-20062005"><font face="Arial" size="2">How
can I have Nagios sound a physical alarm. In other words I want to wake
up the NOC if a a system goes critical?</font></span></div>
<div> </div>
<div align="left"><font face="Arial" size="2">Thank you,</font></div>
<div align="left"> </div>
<div align="left"><font face="Arial" size="2">Daniel G. Rusch</font></div>
<div align="left"><font face="Arial" size="2">x2027</font></div>
<div> </div>
</blockquote>
<br>
<br>
</body>
</html>