FastDPI monitoring and logs [Документация 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_components:platform:mon_stat:start [2023/09/18 08:00] elena.krasnobryzhen:dpi:dpi_components:platform:mon_stat:start [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== FastDPI monitoring and logs ====== 
-{{indexmenu_n>14}} 
-System logs are presented as text files that are located in the /var/log/dpi directory for DPI and PCRF modules. 
-Types of messages in the log: 
-  - [CRITICAL] - critical error, system operation is impossible without troubleshooting 
-  - [WARNING] - warning, the system does not stop, but it is worth eliminating this malfunction 
-  - [TRACE] - messages when the diagnostic trace mode is enabled 
-  - [INFO] - notification of system actions 
-  - [ERROR] - error when connecting services and policies, incorrect configuration 
- 
-The FastDPI process by default logs all system actions to the following debug and statistics log files: 
-  - [[en:dpi:dpi_components:platform:mon_stat:slave_log:start|/var/log/dpi/fastdpi_slave*.log]] - a log of traffic processing processes 
-  - [[en:dpi:dpi_components:platform:mon_stat:stat_log:start| /var/log/dpi/fastdpi_stat.log]] - traffic processing statistics log 
-  - [[en:dpi:dpi_components:platform:mon_stat:alert_log:start| /var/log/dpi/fastdpi_alert.log]] - common fastDPI functions log 
- 
-Note: For each handler, its own fastdpi_slave log is created, other log files are created in a single copy. 
- 
- 
-[[en:dpi:dpi_components:platform:mon_stat:admin_stat_log_block:start| Blocking counters that are saved in the statistics log]] 
- 
- 
- 
- 
-We offer you the following set of parameters that can be received from the VAS Experts DPI: 
-  - fastDPI process errors from the ///var/log/dpi/fastdpi_alert.log// log file 
-  - system log errors from ///var/log/messages// 
-  - drops within the DNA interfaces 
-  - traffic volumes on the interfaces 
-  - availability of management interfaces  
-  - the number of processed requests over HTTP and HTTPS 
-  - the number of blocked resources over HTTP, HTTPS, IP 
-  - the number of PPPoE sessions 
- 
- 
-You can use zabbix agent for monitoring. Installation Description: 
- 
-1. Install zabbix agent on the server: 
-  rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm 
-  yum install zabbix-agent 
- 
-2. Update SELinux policy 
- 
-''yum update selinux-policy'' 
- 
-3. Put {{ :dpi:dpi_components:platform:mon_stat:skat_userparams.zip |skat_userparams.conf}} to the /etc/zabbix/zabbix_agent.d/ directory and [[http://vasexperts.ru/upload/zabbix_agentd.conf|zabbix_agentd.conf]] to the /etc/zabbix/  
- 
-4. Edit /etc/zabbix/zabbix_agentd.conf file: 
-  Server=%zabbix server address% 
-  ServerActive=%zabbix server address% 
-  Hostname=%server hostname% 
-   
-  
-5. Change the context of the /var/log/dpi/fastdpi_stat.log file: 
-  chcon unconfined_u:object_r:zabbix_log_t:s0 /var/log/dpi/fastdpi_stat.log 
-  
-6. Add to the /etc/sysconfig/iptables the following rule before -A INPUT -j REJECT:\\ 
- -A INPUT -p tcp --dport 10050 -j ACCEPT 
- 
-7. Reload iptables rules: 
-  service iptables reload 
-  
-8. Add zabbix agent to start on boot and start it: 
-  chkconfig zabbix-agent on 
-  service zabbix-agent start 
- 
-9. Import prepared template in Zabbix 
-  * For version 4.2 (new) - {{ :dpi:dpi_components:platform:mon_stat:zbx_export_templates_4.2.zip |zbx_template_dpi_4.2.xml}} 
-  * For version 3.4 (new) - [[http://vasexperts.ru/upload/zbx_template_dpi_3.4.xml|zbx_template_dpi_3.4.xml]] 
-  * For version 2.4 (old) - [[http://vasexperts.ru/upload/zbx_template_dpi.xml|zbx_template_dpi.xml]] 
-In the Zabbix server control panel add a new host, bind this template. 
- 
-10. Disable requests for network interfaces that are not used in dpi by clicking on __enabled__ on the right in the zabbix GUI\\ 
-{{:zabbix.png?900|}} 
- 
-[[en:dpi:dpi_components:platform:mon_stat:admin_stat_log_block|Lock counters that are stored in the statistics log]]