check host_name or IP

Marc Powell marc at ena.com
Thu Jan 24 20:01:49 CET 2008



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of bjlockie at lockie.ca
> Sent: Thursday, January 24, 2008 12:46 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] check host_name or IP
> 
> 99% of the time I can check and IP but sometimes I need to check the
> host_name.
> I tried:
> command_line    $USER1$/check_http --hostname=$HOST_NAME$ -u$ARG1$
-r$ARG2
> $

You mean $HOSTNAME$. This also means that host_name in your host{}
definition much be fully qualified or otherwise resolvable.

http://nagios.sourceforge.net/docs/2_0/macros.html#hostname

--
Marc

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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