louislam / uptime-kuma

A fancy self-hosted monitoring tool
https://uptime.kuma.pet
MIT License
60.45k stars 5.41k forks source link

Check Telnet port for correct response #1504

Open HolgerAusB opened 2 years ago

HolgerAusB commented 2 years ago

⚠️ Please verify that this feature request has NOT been suggested before.

🏷️ Feature Request Type

New Monitor

🔖 Feature description

Inspired by #9 and the wish of @choffmeister of monitoring a Teamspeak server, I would sugguest to implement a telnet monitor. Teamspeak servers have a telnet interface, standardport is 10011.

If Kuma would support monitoring via telnet protocol, that would be great. In addition, we should be able to specify a comparison pattern that is compared with the response of the server.

Maybe the expect-package is helpful?

✔️ Solution

call a server via telnet port an compare the answer with a pattern

❓ Alternatives

One could use a variant of my script (via cron job) to set an mqtt-topic if telnet does not show the greeting-message. And then use the new mqtt-Monitor in Kuma (currently in pre-release 1.15.0-beta.0).

📝 Additional Context

No response

Computroniks commented 2 years ago

This would be a nice feature to have but I am not sure about its applications other than for TeamSpeak as you suggest. I am also not sure how widely telnet is used as a monitoring system anymore due to it being overtaken by systems such as SSH in terms of security. Do you perhaps have any other use cases for this monitor type?

HolgerAusB commented 2 years ago

I don't know about other systems. But as it is a low security protocol, I think it could be easy to build a monitor. I might be wrong about that point.

maybe same monitor works for SSH or similar protocols too?

augustgerro commented 2 years ago

Telnet us totally unsecured protocols, many companies disabled it long time ago. It seems to me that monitoring for SSH is a higher priority