D
D
Drno2019-12-17 22:34:11
linux
Drno, 2019-12-17 22:34:11

How to properly set up monitoring?

Good day. There are N number of installations scattered around the city. It is necessary to monitor their availability and a couple of "services" in them.
About the installation - inside ubuntu, the zabbih agent is configured right now. Everything is fine, it seems to work.
On installations, it is necessary to monitor (receive notifications) about the fall of 2 critical moments.
1. There is an automation software for music, it has a web face, it sends a stream to localhost: 8000/radio.mp3
How to understand that not only the web face itself works, but also the stream is given? Now the check is banal - I launch vlc with a link, well, there is / no sound))
2. At the start of the installation, vlc is launched, which actually plays this stream in "columns". How to monitor that it has started, works ...
It seems that it does not fall and works very stably, but I want to get a notification, just in case.
Monitoring works on Zabbix.
Installations are all ours, we can return anything, in terms of software, settings

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vadim Priluzkiy, 2019-12-18
@Oxyd

You can check like this:
If an MPEG Layer III stream really arrives, then the grep will exit with a zero termination code. Then the shell is in your hands.
About vlc. You can run it without a graphical interface. And to make the systemd unit run by giving control of the launch / restart in the event that systemd falls to the mercy. Well, to monitor the activity of the systemd unit with zabbix.

K
ky0, 2019-12-18
@ky0

Make a test request and analyze what arrives in response - in size or somehow more cunningly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question