]> git.proxmox.com Git - ceph.git/blame - ceph/doc/mgr/zabbix.rst
update sources to v12.1.2
[ceph.git] / ceph / doc / mgr / zabbix.rst
CommitLineData
224ce89b
WB
1Zabbix plugin
2=============
3
4The Zabbix plugin actively sends information to a Zabbix server like:
5
6- Ceph status
7- I/O operations
8- I/O bandwidth
9- OSD status
10- Storage utilization
11
12Requirements
c07f9fc5 13------------
224ce89b
WB
14
15The plugin requires that the *zabbix_sender* executable is present on *all*
16machines running ceph-mgr. It can be installed on most distributions using
17the package manager.
18
19Dependencies
c07f9fc5 20^^^^^^^^^^^^
224ce89b
WB
21Installing zabbix_sender can be done under Ubuntu or CentOS using either apt
22or dnf.
23
24On Ubuntu Xenial:
25
26::
27
28 apt install zabbix-agent
29
30On Fedora:
31
32::
33
34 dnf install zabbix-sender
35
36
37Enabling
c07f9fc5 38--------
224ce89b
WB
39
40Add this to your ceph.conf on nodes where you run ceph-mgr:
41
42::
43
44 [mgr]
45 mgr modules = zabbix
46
47If you use any other ceph-mgr modules, make sure they're in the list too.
48
49Restart the ceph-mgr daemon after modifying the setting to load the module.
50
51
52Configuration
c07f9fc5 53-------------
224ce89b
WB
54
55Two configuration keys are mandatory for the module to work:
56
57- mgr/zabbix/zabbix_host
58- mgr/zabbix/identifier
59
60The parameter *zabbix_host* controls the hostname of the Zabbix server to which
61*zabbix_sender* will send the items. This can be a IP-Address if required by
62your installation.
63
64The *identifier* parameter controls the identifier/hostname to use as source
65when sending items to Zabbix. This should match the name of the *Host* in
66your Zabbix server.
67
68Additional configuration keys which can be configured and their default values:
69
70- mgr/zabbix/zabbix_port: 10051
71- mgr/zabbix/zabbix_sender: /usr/bin/zabbix_sender
72- mgr/zabbix/interval: 60
73
c07f9fc5
FG
74Configuration keys
75^^^^^^^^^^^^^^^^^^^
224ce89b
WB
76
77Configuration keys can be set on any machine with the proper cephx credentials,
78these are usually Monitors where the *client.admin* key is present.
79
80::
81
c07f9fc5 82 ceph config-key set <key> <value>
224ce89b
WB
83
84For example:
85
86::
87
c07f9fc5
FG
88 ceph config-key set mgr/zabbix/zabbix_host zabbix.localdomain
89 ceph config-key set mgr/zabbix/identifier ceph.eu-ams02.local
224ce89b
WB
90
91Debugging
c07f9fc5 92---------
224ce89b
WB
93
94Should you want to debug the Zabbix module increase the logging level for
95ceph-mgr and check the logs.
96
97::
98
99 [mgr]
100 debug mgr = 20
101
102With logging set to debug for the manager the plugin will print various logging
103lines prefixed with *mgr[zabbix]* for easy filtering.
104