Difference between revisions of "Zabbix"
Line 66: | Line 66: | ||
zabbix_agentd -t system.uptime | zabbix_agentd -t system.uptime | ||
``` | ``` | ||
+ | |||
+ | # Monitor Docker | ||
+ | - https://techexpert.tips/zabbix/monitoring-docker-using-zabbix/#:~:text=Zabbix%20%2D%20Monitor%20the%20Docker%20service,your%20web%20server%20plus%20%2Fzabbix.&text=On%20the%20login%20screen%2C%20use%20the%20default%20username%20and%20default%20password. |
Revision as of 16:41, 30 June 2020
Prometheus or Zabbix are good options depending on needs.
Using Prometheus
You may want to check these out and do the docker way
Login to Zabbix Server
use Zimbra example.io login without domain i.e. busk
Install zabbix agent in active mode on current host
https://github.com/jeremybusk/zabbix/blob/master/zabbix-install-agent.sh
wget https://raw.githubusercontent.com/jeremybusk/zabbix/master/zabbix-install-agent.sh sed -i 's/^DOMAIN=.*/DOMAIN="pyr8.io"/g' zabbix-install-agent.sh chmod +x zabbix-install-agent.sh ./zabbix-install-agent.sh
Zabbix Syslog Logging
https://blog.zabbix.com/zabbix-log-file-monitoring/7378/
Your host should automatically appear in Zabbix hosts https://monitor.example.com/hosts.php?ddreset=1
If not, let admin know as there may be some permissions on Zabbix server to allow auto-registration of the agent.
If not using passive checks, agent host is on nat network foreign to server host, in zabbix agent config set agent interfaces to use IP : 127.0.0.1
You can use a proxy to do active checks on networks behind firewalls.
You have items(metrics), triggers and actions.
You set the logic how you want it to work. You can write your own custom scripts to work within the framework.
Notifications
https://www.zabbix.com/notification
https://wiki.example.io/mediawiki/index.php/Notification
Resources
Zabbix Architecture
https://www.zabbix.com/documentation/current/manual/distributed_monitoring/proxies
Testing Agent
apt install zabbix-get zabbix_get -s <host> -p <port:10050> -k <key> If the command is not found install it with your package manager, eg: apt install zabbix-get You can also get the command available on the agent, by launching this command on agent zabbix_agentd -p zabbix_agentd -t system.uptime