Escaping snmp community string characters


#1

Hi,

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?

Thanks


#2

try a forward slash
/!somecommunitystring


#3

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.