check_ssh and check_smtp
Marc Powell
marc at ena.com
Wed Sep 17 02:25:10 CEST 2008
On Sep 16, 2008, at 7:09 PM, Michael Hallager wrote:
> When I run these commands at the prompt it works.
>
> When I run them via Nagios, it displays “Invalid hostname/address -
> $ “
>
> It appears to be to do with the way they’re called:
> command[check_smtp]=/usr/local/nagios/libexec/check_smtp -H
> $HOSTADDRESS$
> command[check_ssh]=/usr/local/nagios/libexec/check_ssh -H
> $HOSTADDRESS$
What does the object file (template) versions of these commands look
like? Nagios hasn't used this command format since the pre-1.0/
Netsaint days. I would hazard a guess that the $HOSTADDRESS$ macro
there is somehow spelled incorrectly.
http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#command
--
Marc
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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