Page 2 of 2
Re: Monitor THANKS telnet response of web server
Posted: Fri May 15, 2020 4:14 pm
by rferebee
Yes, I get TCP OK back.
Re: Monitor THANKS telnet response of web server
Posted: Mon May 18, 2020 1:04 pm
by jdunitz
And if Scott's suggestion works, I recommend trying with just "You" instead of "You're", just to avoid any quoting issues, at least for testing purposes. It's possible that the listserv could give you a different response that happens to start with "You", but this wouldn't be standard behavior.
--Jeffrey
Re: Monitor THANKS telnet response of web server
Posted: Mon May 18, 2020 1:21 pm
by rferebee
It's still timing out if just use "You" instead of "You're welcome!"
I'm still waiting for another suggestion from Scott.
Re: Monitor THANKS telnet response of web server
Posted: Tue May 19, 2020 12:47 pm
by jdunitz
Try with an explicitly-escaped return in your message:
./check_tcp -v -H listserv.ip.addr -E -p 2306 -s "thanks\r\n" -e You --quit=quit
This worked for me just now against a listserv server that was timing out like yours did.
--Jeffrey
Re: Monitor THANKS telnet response of web server
Posted: Tue May 19, 2020 12:53 pm
by rferebee
Yes! That worked perfectly. Thank you very much!
Can you explain to me what the various switches do? -E and "thanks\r\n"
Just for my own knowledge.
Re: Monitor THANKS telnet response of web server
Posted: Wed May 20, 2020 7:38 am
by scottwilkerson
rferebee wrote:Yes! That worked perfectly. Thank you very much!
Can you explain to me what the various switches do? -E and "thanks\r\n"
Just for my own knowledge.
Great!
They are outlined in this document
http://nagios-plugins.org/doc/man/check_tcp.html
Re: Monitor THANKS telnet response of web server
Posted: Fri May 29, 2020 11:10 am
by rferebee
This thread can be locked. Thank you.
Re: Monitor THANKS telnet response of web server
Posted: Fri May 29, 2020 11:15 am
by scottwilkerson
rferebee wrote:This thread can be locked. Thank you.
Great!
Locking thread