jay_41157
Sep 16, 2008Nimbostratus
reg exp in health monitor
Hi ,
I need my recieve string to be exactly 0
So I am thinking to use: "^0\n"
Will this work? any other ideas?
Thanks
I think you'd want either:
^0\n\n$
or:
^0\r\n\r\n$
The server should respond with two carriage return + line feeds. You can capture a tcpdump of a successful response to see exactly what it sends:
tcpdump -ni 0.0 -Xs0 host SERVER_IP
You can enable debug on the monitoring daemon, bigd by running 'b db bigd.debug enable'. Output is written to /var/log/bigdlog by default. To disable logging run 'b db bigd.debug disable'. Note that the hex output from tcpdump will probably be more helpful than the bigd debug as the log doesn't show the unprintable characters.
Aaron
Aaron