Difference between revisions of "Zabbix agent"
Jump to navigation
Jump to search
(Created page with " ``` zabbix_agentd -p zabbix_agent -t vm.memory.size[free] vfs.file.cksum[c:\windows\win.ini] zabbix_get -s <host> -p <port:10050> -k <key> ```") |
|||
Line 8: | Line 8: | ||
zabbix_get -s <host> -p <port:10050> -k <key> | zabbix_get -s <host> -p <port:10050> -k <key> | ||
+ | ``` | ||
+ | |||
+ | ``` | ||
+ | $tlsid = (Get-Content 'C:\Program Files\Zabbix Agent\zabbix_agentd.conf' | Select-String -Pattern '^TLSPSKIdentity=')[0].Line.split('=')[1]; zabbix_get -s localhost -p 10050 -k vm.memory.size[available] --tls-connect psk --tls-psk-identity $tlsid --tls-psk-file 'C:\Program Files\Zabbix Agent\psk.key' | ||
``` | ``` |
Revision as of 23:40, 1 July 2021
zabbix_agentd -p zabbix_agent -t vm.memory.size[free] vfs.file.cksum[c:\windows\win.ini] zabbix_get -s <host> -p <port:10050> -k <key>
$tlsid = (Get-Content 'C:\Program Files\Zabbix Agent\zabbix_agentd.conf' | Select-String -Pattern '^TLSPSKIdentity=')[0].Line.split('=')[1]; zabbix_get -s localhost -p 10050 -k vm.memory.size[available] --tls-connect psk --tls-psk-identity $tlsid --tls-psk-file 'C:\Program Files\Zabbix Agent\psk.key'