sending two lines with check_tcp plugin

Hugo van der Kooij hvdkooij at vanderkooij.org
Tue Jan 24 20:35:00 CET 2006


On Tue, 24 Jan 2006, Angel L. Mateo wrote:

> 	I am trying to monitor one of my servers with check_tcp plugin. With
> this, I could send a string to the server (to the specified port) and
> analize the answer in order to get an OK, warning or critical message.
>
> 	But the problem I have is that I need to send two lines to the server I
> want to check, not just one. I have tried to put:
>
> 	check_tcp ... -s "first line\nthe second one" ...
>
> 	but it sends it as is, without substituting \n for a line break.

Will that system understand \n to be a line break? Because dos and windows
systems need CR + LF to do the trick.

Have you tried a literal linebreak in the config file?

Hugo.

-- 
	I hate duplicates. Just reply to the relevant mailinglist.
	hvdkooij at vanderkooij.org		http://hvdkooij.xs4all.nl/
		Don't meddle in the affairs of magicians,
		for they are subtle and quick to anger.


-------------------------------------------------------
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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
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