sending two lines with check_tcp plugin
Eli Stair
estair at ilm.com
Tue Jan 24 19:13:10 CET 2006
How about a quickie bash/perl wrapper around netcat?
/eli
Angel L. Mateo wrote:
> Hello,
>
> 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. I have
> also tried with:
>
> check_tcp ... -s "the first line" -s "the second one" ...
>
> but it connects twice with the server.
>
> Is there anyway to indicate the line break in the string I want to send
> to the server?
>
-------------------------------------------------------
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