It's safe. Just note that if you send Kafka anything it does not like, it will close the connection on you. This is intentional and doesn't signal an issue with Kafka.
Not sure if Nagios does this, but I like "canary" tests - produce a message with timestamp every X seconds and have a monitor that consumes the messages and check timestamps. This way you get both end-to-end monitoring and latency alerts. What could be more fun? :) Gwen On Mon, Feb 9, 2015 at 2:48 PM, Koert Kuipers <ko...@tresata.com> wrote: > i would like to be able to ping kafka servers from nagios to confirm they > are alive. since kafka servers dont run a http server (web ui) i am not > sure how to do this. > > is it safe to establish a "test" tcp connection (so connect and immediately > disconnect using telnet or netstat or something like that) to the kafka > server on port 9092 to confirm its alive? > > thanks >