Monitor THANKS telnet response of web server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Re: Monitor THANKS telnet response of web server

Post by rferebee »

Yes, I get TCP OK back.
User avatar
jdunitz
Posts: 235
Joined: Wed Feb 05, 2020 2:50 pm

Re: Monitor THANKS telnet response of web server

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Re: Monitor THANKS telnet response of web server

Post 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.
User avatar
jdunitz
Posts: 235
Joined: Wed Feb 05, 2020 2:50 pm

Re: Monitor THANKS telnet response of web server

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Re: Monitor THANKS telnet response of web server

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitor THANKS telnet response of web server

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Re: Monitor THANKS telnet response of web server

Post by rferebee »

This thread can be locked. Thank you.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitor THANKS telnet response of web server

Post by scottwilkerson »

rferebee wrote:This thread can be locked. Thank you.
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked