monitor a hostless service

Marc Powell marc at ena.com
Wed May 19 01:57:29 CEST 2004


You can also leave out command_line entirely for a host definition.


--
Marc

-----Original Message-----
From: Jared Rhine <jared at wordzoo.com>
To: nagios-users at lists.sourceforge.net <nagios-users at lists.sourceforge.net>
Sent: Tue May 18 16:44:05 2004
Subject: [Nagios-users] monitor a hostless service

[Dan == Newcombe at mordor.clayton.edu on Tue, 18 May 2004 12:26:49 -0400 (EDT)]

Dan> I think I know the answer to this, but....  Is it possible to
Dan> monitor a service that doesn't have a host (without defining a
Dan> dummy host - may have to use loopback as a host definition!)???

I define a normal-looking host, with a check_command of
'host_always_up', defined thusly:

define command{
  command_name host_always_up
  command_line /bin/true
}

There are many different approaches to the same idea.  But definitely,
100%, every service needs a host object to associate with.

-- jared at wordzoo.com

http://www.geekcode.com/geek.html
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCM/CS/B
d s:++>+ a-
C++(++++)$ ULBSH++++ P+++ L+++ E++(+++) W++++ N- !o !K w !O M V
PS+++(-) PE++(--) Y+ PGP>++
t@ 5 X+ R>+ tv++>-- b>++ DI+ D- G
e++ h- r++>+++ y+++
------END GEEK CODE BLOCK------


-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20040518/b0d0774a/attachment.html>


More information about the Users mailing list