Discussion:
[Nagios-users] check_ssh and check_smtp
Michael Hallager
2008-09-17 00:09:31 UTC
Permalink
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$



as per the nagios-plugins commands.cfg file.



Is $HOSTADDRESS$" an invalid variable?
Marc Powell
2008-09-17 00:25:10 UTC
Permalink
Post by Michael Hallager
When I run these commands at the prompt it works.
When I run them via Nagios, it displays “Invalid hostname/address -
$ “
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

Continue reading on narkive:
Loading...