How to use newline in config files
Sebastian Kayser
mls at skayser.de
Sun Dec 18 10:08:37 CET 2005
* Jason Bodnar <jason at shakabuku.org> wrote:
> I need to have a newline as an arguement for a check_command. \n doesn't work.
> ^J does work. Hitting Enter and putting the rest on a separate line causes
> nagios to choke on the config file. How do you put include a newline in an
> arguement?
You could try to write a wrapper (with bash/perl/...) for your check
script which calls the relevant command with a newline. Thereafter you
would define a check_command for your wrapper instead of the relevant
command itself.
But post some details on which command you want to be called on how you
have tried it 'til now, maybe there are other ways.
- sebastian
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list