<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.17">
<TITLE>RE : [Nagios-users] Sybase check on windows servers</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Hello Lalita,<BR>
<BR>
><BR>
>This means I will have to pass that particular service name individually<BR>
>to check_nt.<BR>
<BR>
You can use Nagios macros for this. Use $HOSTNAME$ to get the name of the service's associated host. For this to work, you have of course to name your host with their hostname.<BR>
<BR>
<BR>
>Is there any way to resolve this so that I can just mention the<BR>
>hostgroup name and need not write separate checks.<BR>
<BR>
You may have to define a command to use this macro, like the following :<BR>
define command {<BR>
         command_name check_sybase<BR>
         command_line /usr/local/nagios/libexec/check_nt -v SERVICESTATE -d SHOWALL -l STBSQL_$HOSTNAME$<BR>
}<BR>
and use this command in your service definition.<BR>
<BR>
Hope it will help,<BR>
<BR>
Florent<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>