Difference between revisions of "Zabbix"

From UVOO Tech Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
[[ Zabbix Issues ]]
 +
[[ Zabbix Log Collection ]]
 +
 
Prometheus or Zabbix are good options depending on needs.
 
Prometheus or Zabbix are good options depending on needs.
  
Line 66: Line 69:
 
zabbix_agentd -t system.uptime
 
zabbix_agentd -t system.uptime
 
```
 
```
 +
 +
# Security
 +
- https://blog.zabbix.com/security-related-monitoring-with-zabbix/8659/
  
 
# Monitor Docker
 
# 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.
 
- 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.
 +
 +
# AD or LDAP Auth
 +
- https://techexpert.tips/zabbix/zabbix-ldap-authentication-on-active-directory/

Latest revision as of 18:52, 1 October 2020

Zabbix Issues Zabbix Log Collection

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

https://monitor.pyr8.io

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

Security

Monitor Docker

AD or LDAP Auth