Difference between revisions of "Zabbix Remote Commands"

From UVOO Tech Wiki
Jump to navigation Jump to search
(Created page with "https://blog.zabbix.com/zabbix-remote-commands/7500/")
 
Line 1: Line 1:
 
https://blog.zabbix.com/zabbix-remote-commands/7500/
 
https://blog.zabbix.com/zabbix-remote-commands/7500/
 +
 +
# Enable on Agent and Test from Server/Proxy
 +
 +
## Client
 +
/etc/zabbix/zabbix_agent2.conf
 +
```
 +
# AllowKey=system.run[*]
 +
# AllowKey=system.run[hostname]
 +
AllowKey=system.run[dir]
 +
```
 +
 +
Reload config
 +
```
 +
sudo
 +
 +
## Server
 +
```
 +
zabbix_get -s txd1-sandbox.extendhealth.com -p 10050 -k "system.run[dir]" --tls-connect psk --tls
 +
-psk-identity <MYID> --tls-psk-file <MYFILEPATH>
 +
```
 +
 +
systemctl restart zabbix-agent2
 +
```

Revision as of 11:47, 23 July 2021

https://blog.zabbix.com/zabbix-remote-commands/7500/

Enable on Agent and Test from Server/Proxy

Client

/etc/zabbix/zabbix_agent2.conf

# AllowKey=system.run[*]
# AllowKey=system.run[hostname]
AllowKey=system.run[dir]

Reload config

sudo

## Server

zabbix_get -s txd1-sandbox.extendhealth.com -p 10050 -k "system.run[dir]" --tls-connect psk --tls -psk-identity --tls-psk-file

<br /> systemctl restart zabbix-agent2