I’m trying to check a service’s status with check_nt. The service has a $ sign in its name and I can’t change that. The following command works fine in a terminal window if issued manually - please note the simple quotes surrounding the service$name, which seems to be needed in this case:
check_nt -H -v SERVICESTATE -l ‘service$name’
However, when Nagios does its check, it strips the simple quotes (which is good) and appends an extra $ at the end (which is not good at all). I get the following warning in Nagios:
Does anyone know how to check such services?