<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>Re: [Nagios-users] monitor a hostless service</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>You can also leave out command_line entirely for a host definition.<BR>
<BR>
<BR>
--<BR>
Marc<BR>
<BR>
-----Original Message-----<BR>
From: Jared Rhine <jared@wordzoo.com><BR>
To: nagios-users@lists.sourceforge.net <nagios-users@lists.sourceforge.net><BR>
Sent: Tue May 18 16:44:05 2004<BR>
Subject: [Nagios-users] monitor a hostless service<BR>
<BR>
[Dan == Newcombe@mordor.clayton.edu on Tue, 18 May 2004 12:26:49 -0400 (EDT)]<BR>
<BR>
Dan> I think I know the answer to this, but.... Is it possible to<BR>
Dan> monitor a service that doesn't have a host (without defining a<BR>
Dan> dummy host - may have to use loopback as a host definition!)???<BR>
<BR>
I define a normal-looking host, with a check_command of<BR>
'host_always_up', defined thusly:<BR>
<BR>
define command{<BR>
command_name host_always_up<BR>
command_line /bin/true<BR>
}<BR>
<BR>
There are many different approaches to the same idea. But definitely,<BR>
100%, every service needs a host object to associate with.<BR>
<BR>
-- jared@wordzoo.com<BR>
<BR>
<A HREF="http://www.geekcode.com/geek.html">http://www.geekcode.com/geek.html</A><BR>
-----BEGIN GEEK CODE BLOCK-----<BR>
Version: 3.12<BR>
GCM/CS/B<BR>
d s:++>+ a-<BR>
C++(++++)$ ULBSH++++ P+++ L+++ E++(+++) W++++ N- !o !K w !O M V<BR>
PS+++(-) PE++(--) Y+ PGP>++<BR>
t@ 5 X+ R>+ tv++>-- b>++ DI+ D- G<BR>
e++ h- r++>+++ y+++<BR>
------END GEEK CODE BLOCK------<BR>
<BR>
<BR>
-------------------------------------------------------<BR>
This SF.Net email is sponsored by: SourceForge.net Broadband<BR>
Sign-up now for SourceForge Broadband and get the fastest<BR>
6.0/768 connection for only $19.95/mo for the first 3 months!<BR>
<A HREF="http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click">http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click</A><BR>
_______________________________________________<BR>
Nagios-users mailing list<BR>
Nagios-users@lists.sourceforge.net<BR>
<A HREF="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</A><BR>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<BR>
::: Messages without supporting info will risk being sent to /dev/null<BR>
</FONT>
</P>
</BODY>
</HTML>