monitor a hostless service

Jared Rhine jared at wordzoo.com
Tue May 18 23:44:05 CEST 2004


[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





More information about the Users mailing list