check_tcp send null byte

Karthik Kailash karthik at socialvisioninc.com
Fri Aug 20 00:34:19 CEST 2010


Hi all,

I want to monitor our Flash socket policy file server.  The server expects a
string terminated in a null byte, but I can't get check_tcp to send a null
byte.

Using netcat does work, however:

perl -e 'printf "<policy-file-request/>%c",0' | nc -v <my server> 843

Here is my check_tcp call:

./check_tcp -H <my server> -p 843 -s "`perl -e 'printf
"<policy-file-request/>%c",0'`" -r crit -M crit -w 1 -c 3 -v -d 2 -e "xml"

The check_tcp doesn't print out any response from the server, which is
consistent with server behavior when it doesn't receive a null byte (if I
remove the 0 in the perl printf).

Any thoughts or ideas would be greatly appreciated.

Cheers,
Karthik

-- 

*Karthik Kailash** **| **Product
SocialVision, Online Television Becomes a Social Experience
CELL • 408.768.7704  | WEB • www.socialvisioninc.com | FACEBOOK •
facebook.com/socialvision <http://www.facebook.com/socialvision> | TWITTER •
twitter.com/socialvision*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100819/d90c08c9/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
-------------- next part --------------
_______________________________________________
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