On 14-05-2012 21:42, Clark, Sean wrote:
I had this set in the protocols.cfg
[bbd]
send "ping"
expect "xymond"
port 1984
I tried this then
[bbd]
send "ping\r\n"
expect "xymond"
port 1984
Shows yellow
Yes, well ... let's just say that xymond has some very specific requirements about the TCP/IP protocol. Which the Xymon network tester doesn't fulfill.
(Technically, xymond expects the client to send a FIN packet - usually done by calling "shutdown(socket, SHUT_WR)" before it will assume that the entire command has been sent - and only then will it process the request and send a response).
Manually running
[sclark at bastion?~]~bb/server/bin/XXX.com "ping"
xymond 4.3.7
Works, but doing something like this doesn't
-bash-3.2$ telnet localhost 1984
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
ping (hit enter here)
^] (give up after waiting for a while)
telnet> quit
Nope, same reason - telnet doesn't shutdown the session the way xymond expects.
So you are not doing anything wrong - it's just xymond that behaves oddly.
Regards,
Henrik