Zabbix lahenduse seadistamine: erinevus redaktsioonide vahel
Allikas: Imre kasutab arvutit
Mine navigeerimisribaleMine otsikasti
Resümee puudub |
Resümee puudub |
||
| (ei näidata sama kasutaja 2 vahepealset redaktsiooni) | |||
| 22. rida: | 22. rida: | ||
Include=/etc/zabbix/zabbix_agent2.d/plugins.d/*.conf |
Include=/etc/zabbix/zabbix_agent2.d/plugins.d/*.conf |
||
Include=/etc/zabbix/zabbix_agent2.d/*.conf |
Include=/etc/zabbix/zabbix_agent2.d/*.conf |
||
| + | DenyKey=system.run[*] |
||
</pre> |
</pre> |
||
| 27. rida: | 28. rida: | ||
<pre> |
<pre> |
||
| − | root@plms-tm:~# openssl rand -hex 32 > /etc/zabbix/ |
+ | root@plms-tm:~# openssl rand -hex 32 > /etc/zabbix/pskident.txt |
| − | root@plms-tm:~# chown root:zabbix /etc/zabbix/ |
+ | root@plms-tm:~# chown root:zabbix /etc/zabbix/pskident.txt |
| − | root@plms-tm:~# chmod 0640 /etc/zabbix/ |
+ | root@plms-tm:~# chmod 0640 /etc/zabbix/pskident.txt |
</pre> |
</pre> |
||
ning server host sissekande juures |
ning server host sissekande juures |
||
| + | * TODO |
||
| − | * |
||
| + | |||
| + | ===Systemd integratsioon=== |
||
| + | |||
| + | <pre> |
||
| + | root@zabbix-01:~# zabbix_get -s 192.168.10.162 -k 'systemd.unit.get["ssh.service", "Service"]' | jq .MemoryCurrent |
||
| + | 24682496 |
||
| + | </pre> |
||
Viimane redaktsioon: 21. aprill 2026, kell 11:40
Sissejuhatus
TODO
Seadistamine
Agendi seadistamine
root@plms-tm:~# egrep -v "^$|^#" /etc/zabbix/zabbix_agent2.conf PidFile=/run/zabbix/zabbix_agent2.pid LogFile=/var/log/zabbix/zabbix_agent2.log LogFileSize=0 Server=10.235.106.149 ServerActive=10.235.106.149 Hostname=plms-tm.auul.pri.ee PluginSocket=/run/zabbix/agent.plugin.sock ControlSocket=/run/zabbix/agent.sock TLSConnect=psk TLSPSKIdentity=psk-ident-plms-tm TLSPSKFile=/etc/zabbix/pskident.txt Include=/etc/zabbix/zabbix_agent2.d/plugins.d/*.conf Include=/etc/zabbix/zabbix_agent2.d/*.conf DenyKey=system.run[*]
ning agent poolel
root@plms-tm:~# openssl rand -hex 32 > /etc/zabbix/pskident.txt root@plms-tm:~# chown root:zabbix /etc/zabbix/pskident.txt root@plms-tm:~# chmod 0640 /etc/zabbix/pskident.txt
ning server host sissekande juures
- TODO
Systemd integratsioon
root@zabbix-01:~# zabbix_get -s 192.168.10.162 -k 'systemd.unit.get["ssh.service", "Service"]' | jq .MemoryCurrent 24682496