service that has no associated host, how to configure?

Lori Adams ladams at cloudmark.com
Thu Jun 30 08:40:12 CEST 2005


It actually doesn't matter if there's a physical hostname, as long as
you don't use $HOST*$ as any of the arguments in checkcommand.

So I just create a pretend hostname that relates to what the machine is
for.
Maybe something like "emulator".  

define host {
	name		emulator
	etc,etc
}

define service {
	name		emulator-check
	checkcommand	check_emulator  <some arg>
}

Then your checkcommand could just be something like:
define checkcommand {
	command_name	check_emulator
	command_line	check_emulator.pl $ARG1$
}  

(or something like that).  

Hope that makes some sense.
-Lori

-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of
prosolutions at gmx.net
Sent: Wednesday, June 29, 2005 11:04 PM
To: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] service that has no associated host, how to
configure?

> >
> >Hello,
> >
> >I have a service that I want to test.  What it actually does is
emulate 
> >a network client that connects to an outside host (totally unrelated
to 
> >my network and not pingable) that gets routed back to my network and
is 
> >handled by an LVS cluster.  Therefore there is no "host_name" really 
> >associated with this service. It is just a test of a service that I
want 
> >to run to make sure the cluster is still behaving the way it is
supposed 
> >to.  Given that "host_name" is required for "define service", can
anyone 
> >recommend how to set this up properly in nagios config?
> >
> 
> use the hostname of the host where you want to run the check from.
> 

I'm confused, because the check is a plugin that I myself will write and
will be running on the nagios system itself.  Are you saying just use
"localhost" then as the host?


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&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


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&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