#2079
[How-To] Zabbix
Run Zabbix from Docker containers : https://www.zabbix.com/documentation/4.0/manual/installation/containers
orapwd gives OPW-00029 Password complexity failed in #Oracle 12.2 | Uwe Hesse [Oracle] Update tablespace max size
Just another Code Snippet site
#2079
Run Zabbix from Docker containers : https://www.zabbix.com/documentation/4.0/manual/installation/containers
orapwd gives OPW-00029 Password complexity failed in #Oracle 12.2 | Uwe Hesse [Oracle] Update tablespace max size
Zabbix – Add Slack notif :
Create a Slack webhook : https://custdev3.slack.com/apps/manage/custom-integrations
Copy the following script to /usr/lib/zabbix/alertscripts/slack.sh
In Zabbix webapp, create a new Action (Configuration > Action > Create) with:
New Operation:
– Operation Type = Remote Command
– Target = Current Host
– Type = Custom Script
– Execute On = Zabbix Server
– Commands = /usr/lib/zabbix/alertscripts/slack.sh “{TRIGGER.SEVERITY}” “{HOST.HOST}” “{TRIGGER.NAME}” “{TRIGGER.ID}” “{EVENT.ID}” “{EVENT.STATUS}”
Do the same for Recovery if needed
Macro/Triggers fields : https://www.zabbix.com/documentation/4.0/fr/manual/appendix/macros/supported_by_location
Backup
The default user is “Admin” and the password is “zabbix”
UserParameter
In the /etc/zabbix/zabbix_agentd.conf :
In the UI, create a new item with Key = myKey1.myKey2
for root actions, zabbix user must be adder to sudoers :
And “requiretty” must be removed (error : sorry, you must have a tty to run sudo)
Timeout could be also increased (error : Timeout while executing a shell script
For Windows, download and unzip archive : https://www.zabbix.com/download
Run as administrator :
See also : https://www.tecmint.com/install-zabbix-agent-and-add-windows-host-to-zabbix-monioring/
Load a backup :
From MySQL container :
Backup docker DB :
Mount a shared drived into the container (for example into /var/lib/backup/)
Download the backup script from : https://github.com/maxhq/zabbix-backup
Create a shell script :
Add a cron :
Docker compose :
Error in the logs :
Short workaround, disable selinux (not recommended)
See https://catonrug.blogspot.com/2018/02/cannot-set-resource-limit-13-permission-denied.html
For Ubuntu, the agent config must be updated with
Configure discovery rule & discovery action
https://www.zabbix.com/documentation/current/en/manual/discovery/network_discovery/rule