Skip navigation

System description

Monitoring system allows to check efficiency of TV channels and automatically turn off them if the problems occurs. If in further there will no problems occur, then the channel will be automatically turn on.

The system - is the list of scripts, which are in /stalker_portal/monitoring/. Those scripts do not depend on the other portal parts and can be copied in other directory or server/servers.

Those scripts allow to manage monitoring. For example, relocate monitoring to another server or run it on the separate servers with specified channels range.

Scripts configuration

check_channels.sh

It is necessary to edit API_URL in check_channels.sh (if it is not the same) and add the task to cron with necessary time period (for example, from 2 to 10 minutes).

Parameter PART in check_channels.sh can be with the next values:

  • 1/1 - all channels
  • 1/2 - the first part
  • 2/2 - the second part

Any combinations can be used.

check_channel.sh

  • directory for monitoring's temporary URLS (dump of the channel) is in parameter TMP_DIR.
  • TIMEOUT is parameter, which shows the duration of one channel monitoring. If the temporary file was not created during this time, then the URL do not work.

If you use a streamer different from Flussonic, then vlc player must be installed on the server where monitoring script runs. 
By default, vlc utility allows to run itself by normal user only, therefore the script check_channels.sh should run not under super-user using cron.

Channel configuring

Simple monitoring

In this case it is enough to turn on “Enable monitoring”. If this option is turned on then the filed for monitoring URL will be available. This field is needed for “Temporary HTTP URL” option, for example. If this field is empty, then the URL for playing will be used. To get more information about how to set the channel accessibility monitoring in the admin panel, click here .

Example 1. Multicast monitoring

For multicast monitoring it is enough to turn on “Enable monitoring” option and be sure that multicast is available on the server.

Example 2. Channel with temporary URL monitoring

In case, if the channel with temporary URL is used - it is necessary to specify multicast or HTTP URL in “Channel's URL for monitoring” field. Access to direct URL can be restricted by firewall from monitoring server only.

Monitoring with load balancing using

beggining from 4.8.58 version there is opportunity to monitor all available channel if the option “load balancing” is turned on. If the monitoring and “load balancing” options are turned on then “Balancer monitoring” can be turned on too. This option allows to monitor the channel on every streaming servers.

The principle:

  1. The value of the “Channel URL for monitoring” field is taking as main URL. If it is empty, then the URL for playing is used.
  2. In this URL the part from :/ / to the next / can be changed to “Address” field of every streaming servers and will be checked with monitoring system.

Colored indication of monitoring result is located on the server in load balancing option.

Temporary URLs and load balancing monitoring

Such functionaltiy appears beginning from 4.8.58 version.

The principle is the same scheme as load balancing monitoring. Exception is the part from :/ / to / or : to “address” field of every streaming server are changed for monitoring.

Need Help

Cindy is an expert on the Ministra TV platform and the author of this article.

Was this article helpful?

Yes No

Sorry to hear that.
How can we improve this article?

We use cookies in order to optimise our website, provide you with the best possible user experience and help us promote our products. Please read our Cookie Policy to find out how we use cookies and how you can control cookies.
By using this website or closing this message, you acknowledge our Privacy Policy and agree to our use of cookies as described in our Cookie Policy.