<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{font-family:Arial;
color:windowtext;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=1 face=Tahoma><span style='font-size:8.5pt;
font-family:Tahoma'>Can somebody help me with a shell script I am trying to
write for nagios.<br>
I am new to nagios and linux.<br>
<br>
I can restart a failed nt service from nagios by hardcoding the server name
into an eventhandler script such as this.<br>
<br>
/usr/bin/rsh thentservername net start \"Spooler\"<br>
<br>
How can I have nagios enter the servername by reading the value of the
$HOSTADRESS$ variable ?<br>
<br>
I have 30 servers I would like to monitor and would have to have 30 separate
scripts and checkcommands at present.<br>
<br>
<br>
</span></font></p>
</div>
</body>
</html>