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.
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:
Any combinations can be used.
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.
For multicast monitoring it is enough to turn on “Enable monitoring” option and be sure that multicast is available on the server.
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.
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:
Colored indication of monitoring result is located on the server in load balancing option.
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.