I'm trying to use the $HOSTNAME$ macro in the service check command. My service check command:
Code: Select all
$USER1$/my_script.sh $HOSTNAME$ The service has “manage host,” the host name is DS. But in /tmp/script.log I get
nagios.mydomain.local$
nagios.mydomain.local - is the linux hostname of the nagios machine. And '$' at the end of the hostname.
Is it a bug?