Escaping snmp community string characters



I’m using the check_snmp command, but have some devices that have an exclamation as part of the SNMP community string. Nagios is seeing that as a separator for the arguments though. Is there a way to escape exclamation points in the check_command section?



try a forward slash


I ad this issue with a dollar sign and the escape character still caused some unexpected Nagios issues. I recommend changing your string if possible to something that uses no special characters.