Illegal $ in service description
Posted: Wed Sep 13, 2017 12:22 pm
All;
I am using Nagios 4.3.4 and came across a problem where I have an illegal dollar sign in my service_description like so:
define service {
use databases-table-check-passive
host_name ubuntu.voipbiz.org
service_description MySQL Table Check - sys.x$host_summary
contact_groups voipbiz.org-admins
servicegroups databases
event_handler mysql_repair_table!$SERVICESTATE$SERVICESTATETYPE$SERVICEATTEMPT$!DBTABLE
}
I thought that I could simply escape the dollar sign by prepending a \$ or a \\$ to the original $ but that doesn't appear to be the case. What am I missing?
Thanks;
Frank
I am using Nagios 4.3.4 and came across a problem where I have an illegal dollar sign in my service_description like so:
define service {
use databases-table-check-passive
host_name ubuntu.voipbiz.org
service_description MySQL Table Check - sys.x$host_summary
contact_groups voipbiz.org-admins
servicegroups databases
event_handler mysql_repair_table!$SERVICESTATE$SERVICESTATETYPE$SERVICEATTEMPT$!DBTABLE
}
I thought that I could simply escape the dollar sign by prepending a \$ or a \\$ to the original $ but that doesn't appear to be the case. What am I missing?
Thanks;
Frank