參考鏈接:
https://blog.csdn.net/g695144224/article/details/81533914
https://blog.csdn.net/workdsz/article/details/78439230
http://www.ttlsa.com/zabbix/zabbix-monitor-logs/
- 創建一個模板
- 在這個模板上創建應用集
- 在這個模板上的應用集上創建監控項 類型很重要!!!!!!
- 在這個模板上的應用集上的監控項上創建觸發器
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
將這個模板添加給對應的業務主機!
將這個模板添加給對應的業務主機!
將這個模板添加給對應的業務主機!
將這個模板添加給對應的業務主機!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
5. zabbix-agent 上修改配置文件
重啓agent
systemctl restart zabbix-agent
6. zabbix-server 一定要開啓10051端口, 不然無法訪問
6.1 配置ip端口
firewall-cmd --permanent --add-rich-rule="rule family="ipv4" source address="遠程訪問的ip" port protocol="tcp" port="本地開放的端口" accept"
firewall-cmd --reload
firewall-cmd --list-ports
firewall-cmd --list-all
6.2 重啓server
systemctl restart zabbix-server
7. zabbix-agent 監控的這個文件必須有可讀權限
如: /var/log/httpd/error_log 這個文件要有可讀權限. 而且他的父級 也要有可讀權限!!!!!!!!!
如: /var/log/httpd/error_log 這個文件要有可讀權限. 而且他的父級 也要有可讀權限!!!!!!!!!
如: /var/log/httpd/error_log 這個文件要有可讀權限. 而且他的父級 也要有可讀權限!!!!!!!!!
如: /var/log/httpd/error_log 這個文件要有可讀權限. 而且他的父級 也要有可讀權限!!!!!!!!!
如: /var/log/httpd/error_log 這個文件要有可讀權限. 而且他的父級 也要有可讀權限!!!!!!!!!
參考鏈接: https://blog.csdn.net/qq_32642039/article/details/77852446