<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1141" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>Earlier, I wrote in requesting assistance in figuring out how to restrict a
global setting that I made to the 'service.cfg' file:</DIV>
<DIV> </DIV>
<DIV>>>"Was wondering if someone could answer a question regarding the
check_ssh<BR>>>service. I have set up the check_ssh under the
service.cfg and set it to<BR>>>check all the servers on our network - I've
associated the wildcard " * ",<BR>>>to the "host_name" variable. The
service check is working as expected; my<BR>>>problem is that I have one
or two Windows box's, that do not use that<BR>>>service, so it generates a
constant error. Does anyone have an idea, how I<BR>>>can set it up
so that it ignores just the few Windows machine that I have,<BR>>>checking
for 'check_ssh'? Any assistance would be greatly appreciated."</DIV>
<DIV> </DIV>
<DIV>Although, JC provided me with a solution (thanks, again JC), I could not
use it with my current configuration settings. But, I have found that
using the, 'dependencies.cfg', I could pretty much do what I was looking to do -
To still be able to use the " * " wildcard, in my service.cfg file, while just
excluding the few Windows servers from the 'check_ssh' service - I hope someone
can use this info. Here, is a copy of what I put in the dependencies.cfg
file (btw, remember to uncomment this configuration file, in your main
nagios.cfg file):</DIV>
<DIV> </DIV>
<DIV>define servicedependency{</DIV>
<DIV>
host_name
nt1</DIV>
<DIV>
service_description
PING</DIV>
<DIV>
dependent_host_name
nt1</DIV>
<DIV>
dependent_service_description SSH</DIV>
<DIV>
execution_failure_criteria o,w,u,c</DIV>
<DIV>
notification_failure_criteria o,w,u,c</DIV>
<DIV>
}</DIV>
<DIV> </DIV>
<DIV>With the settings outlined above, I have "PING" - the only check I want for
my NT machines - as the dependent service, for which I've tied "SSH" to; as long
as the NT server is pingable; for that matter, even if it fails, across the
board, SSH will not be checked on the NT server. I would have liked that
the "SSH" check itself, not show up in the status window - it never checks for
ssh, but leaves "PENDING" in the "STATUS" column; but, I can live with
that.</DIV>
<DIV> </DIV>
<DIV>-TS Chong</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><BR> </DIV></BODY></HTML>