You could use a user macro to store the string so it can be referenced safely in checks:
https://assets.nagios.com/downloads/nag ... ponent.pdf
Problem with adding service check in XI with $
Re: Problem with adding service check in XI with $
Former Nagios employee