Using ! exclamation mark in Nagios CFG files?
Posted: Tue Feb 14, 2012 9:06 pm
I know that NAGIOS uses the ! mark character in CFG files as a seperator. Example:
check_command check_win_disk1!C!80!90!12480
The issue I have is my company uses the ! character in our SMTP community string. I need to populate this string as an argument when running a command:
define service{
use generic-service
host_name my_server_name
service_description DELL_OPENMANAGE_STATUS
check_command check_dell_openmanage!mycommun!tystring!dellom
normal_check_interval 3
retry_check_interval 1
}
Is there a special character I can use to get it to treat the ! as a character rather than a seperator? I've tried "", //, '', etc... Also checked google but can't get an answer anywhere. Anyone know? Appreciate any assistance in advance.
check_command check_win_disk1!C!80!90!12480
The issue I have is my company uses the ! character in our SMTP community string. I need to populate this string as an argument when running a command:
define service{
use generic-service
host_name my_server_name
service_description DELL_OPENMANAGE_STATUS
check_command check_dell_openmanage!mycommun!tystring!dellom
normal_check_interval 3
retry_check_interval 1
}
Is there a special character I can use to get it to treat the ! as a character rather than a seperator? I've tried "", //, '', etc... Also checked google but can't get an answer anywhere. Anyone know? Appreciate any assistance in advance.