|
From: | Nestor Urquiza |
Subject: | Does port tcp check writes anything to the socket? |
Date: | Thu, 11 Jul 2013 11:43:44 -0400 |
Hi guys,
We monitor a provider server using the below:
<code>
check host genevastby.krfs.com with address 192.168.5.125
if failed port 9000 type tcp with timeout 15 seconds
then alert
</code>
However the provider logs are constantly complaining about socket failures. Detailed inspection allowed me to determine that the provider service actually does that when at least three characters are written to the socket so basically the below will make the server complaint:
<code>
exec
3
<>/dev/tcp/${HOST}/${PORT}; echo -e
"\n\n\n"
>&
3
; exec
3
>&
</code>
Any three characters will do really. If nothing is written to the port or less than three characters are written there will be no error messages.
The question would be then if there is a way to tell monit not to write anything to the socket?
Thanks!
- Nestor
[Prev in Thread] | Current Thread | [Next in Thread] |