nagios セミコロン

nagios

NOTE: You may not include a semicolon (;) in a
command_line directive, because everything after it will be ignored as a .cfg
file comment. You can work around this by calling a wrapper shell script that
does what you want, or you can set one of the $USER$ macros in your resource file to a semicolon and use it in place of the semicolon.

I discovered a different workaround for semicolons in command_line directives:

in resource.cfg:

$USER9$=;

then in the command definition I can use:

	command_line	$USER1$/contrib/check_oracle_instance.pl -ufoo -pbar
-c"host=host_foo$USER9$sid=oracle_sid_foo" -a

https://sourceforge.net/p/nagios/mailman/message/10111816/