Monitoring via SNMP agent (Zabbix-agent) [Документация VAS Experts]

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
en:dpi:dpi_components:platform:mon_stat:zabbix [2025/01/15 12:47] – [Monitoring via SNMP agent (Zabbix-agent)] elena.krasnobryzhen:dpi:dpi_components:platform:mon_stat:zabbix [2025/03/06 09:04] (current) elena.krasnobryzh
Line 25: Line 25:
   - Change the context of the ''/var/log/dpi/fastdpi_stat.log'' file: <code bash>chcon unconfined_u:object_r:zabbix_log_t:s0 /var/log/dpi/fastdpi_stat.log</code>   - Change the context of the ''/var/log/dpi/fastdpi_stat.log'' file: <code bash>chcon unconfined_u:object_r:zabbix_log_t:s0 /var/log/dpi/fastdpi_stat.log</code>
   - Open tcp/udp ports 10050 and 10051 in firewall    - Open tcp/udp ports 10050 and 10051 in firewall 
-  - Upload the {{ :dpi:dpi_components:platform:mon_stat:ssg_userparams.conf |}} file to the ''/etc/zabbix/zabbix_agent.d/'' directory+  - Upload the {{ :en:dpi:dpi_components:platform:mon_stat:ssg_userparams.conf |}} file to the ''/etc/zabbix/zabbix_agent.d/'' directory
   - Edit the ''ssg_userparams.conf'' file by replacing the interface number in ''UserParameter''\\ **''02-00.0'' should be replaced with the interface names of your server!\\ The name must match the DPI config. If you have more than 2 interfaces in use, you must add a line similar to the existing parameters.** <code bash>UserParameter=dpi.02-00.0.drops,tac /var/log/dpi/fastdpi_stat.log | sed /'IF 02-00.0'/q | tac | sed -e 1,/'Actual   Stats'/d | sed '6!D' | awk '{print $1}' | sed 's/^.//'</code>   - Edit the ''ssg_userparams.conf'' file by replacing the interface number in ''UserParameter''\\ **''02-00.0'' should be replaced with the interface names of your server!\\ The name must match the DPI config. If you have more than 2 interfaces in use, you must add a line similar to the existing parameters.** <code bash>UserParameter=dpi.02-00.0.drops,tac /var/log/dpi/fastdpi_stat.log | sed /'IF 02-00.0'/q | tac | sed -e 1,/'Actual   Stats'/d | sed '6!D' | awk '{print $1}' | sed 's/^.//'</code>
   - Restart the agent: ''systemctl restart Zabbix-agent''   - Restart the agent: ''systemctl restart Zabbix-agent''
Line 31: Line 31:
 =====Server setup===== =====Server setup=====
   - Install and configure Zabbix servers according to the  [[https://www.zabbix.com/ru/download?zabbix=6.0&os_distribution=centos&os_version=8&components=agent&db=&ws=|instructions]]  on the official website.   - Install and configure Zabbix servers according to the  [[https://www.zabbix.com/ru/download?zabbix=6.0&os_distribution=centos&os_version=8&components=agent&db=&ws=|instructions]]  on the official website.
-  - Add template {{ :dpi:dpi_components:platform:mon_stat:zbx_export_templates.xml |}}\\ 1) Go to Configuration section\\ 2) Templates section\\ 3) Click “Import”\\ 4) Import template file\\ 5) Save changes\\ {{:dpi:dpi_components:platform:mon_stat:import_tmp.png?nolink&1200|}}+  - Add template {{ :en:dpi:dpi_components:platform:mon_stat:zbx_export_templates.xml |}}\\ 1) Go to Configuration section\\ 2) Templates section\\ 3) Click “Import”\\ 4) Import template file\\ 5) Save changes\\ {{:dpi:dpi_components:platform:mon_stat:import_tmp.png?nolink&1200|}}
   - Add a DPI server as a host\\ 1) Go to Monitoring section\\ 2) Hosts section\\ 3) Click “Create host”\\ 4) Set the required parameters, hostname, group and the previously added template\\ 5) Save changes\\ {{:dpi:dpi_components:platform:mon_stat:create_host.png?nolink&1200|}}   - Add a DPI server as a host\\ 1) Go to Monitoring section\\ 2) Hosts section\\ 3) Click “Create host”\\ 4) Set the required parameters, hostname, group and the previously added template\\ 5) Save changes\\ {{:dpi:dpi_components:platform:mon_stat:create_host.png?nolink&1200|}}
   - Edit the template: change the names of the interfaces and keys so that they match the ''UserParameter''.   - Edit the template: change the names of the interfaces and keys so that they match the ''UserParameter''.