Script for monitoring reports of the Revisor blocked sites control system [Документация VAS Experts]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:dpi:dpi_options:opt_filtration:revmon_script:start [2023/07/12 13:40] elena.krasnobryzhen:dpi:dpi_options:opt_filtration:revmon_script:start [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== 12 Script for monitoring reports of the Revisor blocked sites control system ====== 
-{{indexmenu_n>11}} 
-Roskomnadzor does not provide an official API for auditing the Revisor (blocking sites control system checking that  
-the access to blacklisted sites is denied) reports, and operator access to such reports is  
-protected by captcha. For the convenience of reports monitoring, we suggest using this script: 
- 
-Installation instructions: 
- 
-1. Download and dearchive the [[http://vasexperts.ru/upload/revmon.tgz|script]] to the directory, for example /home/revmon/ 
-<code> 
-cd /home/revmon 
-wget http://vasexperts.ru/upload/revmon.tgz 
-tar xvzf revmon.tgz 
-</code> 
-2. Install the mail client mutt. This command is applicable for CentOS and VEOS, the way of installation in other operating systems will differ 
-<code> 
-yum install mutt 
-</code> 
-3. Specify the e-mail for sending reports 
-<code> 
-in the CONF/emails.txt file specify one or more space separated e-mails 
-vasya@example.org 
-</code> 
-4. Specify the session cookie to load the reports using a script without reauthorizing 
-<code> 
-in the CONF/cookie.txt file specify cookie using the following format 
-PHPSESSID=u53r9cn7d9f4hl9ro2odul51k3 
-</code> 
-Here's one way to get the value of a session cookie using the Chrome browser: 
-<code> 
-Go to the Revisor portal https://portal.rfc-revizor.ru/ using Chrome browser 
-Log in typing in the captcha 
-Select "Additional Tools" -> "Developer Tools" from the Chrome menu (three dots) 
-Go to the "My Reports" page 
-Select the "Network" menu item in the horizontal menu, then the first item in the list of pages "myclaims-reports" and then the "Cookies" option in the optional horizontal menu 
-Copy the value of this cookie and put it into CONF/cookie.txt using the specified format 
-Also, you can copy the cookies from the "Headers" menu 
-</code> 
-5. Configure cron to run the script every 5 minutes. Its is responsible for maintaining the session activity so that it does not expire and for loading reports once they are created 
-<code> 
-*/5 * * * * /home/revmon/revmon.sh > /dev/null 2>&1 
-</code> 
-6. Configure the cron in order to request the Revisor reports at the time you specify 
-<code> 
-50 07,23 * * * /home/revmon/revmon.sh order > /dev/null 2>&1 
-</code> 
-7. Configure the reports cleaning being stored for more than a month in order to avoid disk overflow 
-<code> 
-15 4 * * * /bin/find /home/revmon/ARCHIVE/ -name \*zip -cmin +44640 -delete > /dev/null 2>&1 
-</code> 
- 
-Downloaded reports are stored in the ARCHIVE directory\\   
-Application log is kept in the exec.log file\\  
-Types of messages:\\  
-PING OK 31.05.2018 18:50 - request for a session\\  
-REQUEST REPORT 31.05.2018 15:32 - request for the report\\  
-SEND REPORT 793546 31.05.2018 18:45 - report is sent\\  
-SESSION EXPIRED - the session expired, you need to update the session cookie, as specified in item 4