Michael Hallager
2008-09-17 00:09:31 UTC
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?
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?