{"id":4760,"date":"2018-10-16T01:55:17","date_gmt":"2018-10-16T01:55:17","guid":{"rendered":"https:\/\/geekdecoder.com\/?p=4760"},"modified":"2018-10-16T01:55:17","modified_gmt":"2018-10-16T01:55:17","slug":"zabbix-plugin-for-ceph-on-proxmox","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2018\/10\/16\/zabbix-plugin-for-ceph-on-proxmox\/","title":{"rendered":"Zabbix Plugin for Ceph on Proxmox"},"content":{"rendered":"<p>The Zabbix plugin actively sends information to a Zabbix server like:<\/p>\n<p>Ceph status<br \/>\nI\/O operations<br \/>\nI\/O bandwidth<br \/>\nOSD status<br \/>\nStorage utilization<\/p>\n<p><!--more--><\/p>\n<p>Login to the first proxmox node. In this case its px1.<\/p>\n<p>Install Zabbix Aget 2- see <a href=\"https:\/\/www.geekdecoder.com\/install-zabbix-agent-on-debian-10\/\">Install Zabbix Agent2 Version 5.4 on Debian 10\/11\/<\/a><\/p>\n<p>Install Zabbix Sender<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\napt-get install zabbix-sender\n<\/pre>\n<p>Locate the zabbix template:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"> locate zabbix_template\n\/usr\/share\/ceph\/mgr\/zabbix\/zabbix_template.xml\n<\/pre>\n<p>Cat the template to the screen and copy to a zabbix_template.xml file on your desktop. <\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\ncat \/usr\/share\/ceph\/mgr\/zabbix\/zabbix_template.xml\n<\/pre>\n<p>The Go to The zabbix server &gt; Configuration &gt; Templates. Click Import and load the file. Select the default values.<\/p>\n<p><a href=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2018\/10\/zabbimport.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4761\" src=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2018\/10\/zabbimport.png\" alt=\"\" width=\"536\" height=\"500\" srcset=\"https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2018\/10\/zabbimport.png 536w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2018\/10\/zabbimport-300x280.png 300w\" sizes=\"auto, (max-width: 536px) 100vw, 536px\" \/><\/a><\/p>\n<p>Add the template to the server you are monitoring in Configuration &gt; Hosts.<\/p>\n<p>You can enable the zabbix module with:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# ceph mgr module enable zabbix\n\n<\/pre>\n<p>Two configuration keys are vital for the module to work:<\/p>\n<p>zabbix_host<br \/>\nidentifier (optional)<\/p>\n<p>The parameter zabbix_host controls the hostname of the Zabbix server to which zabbix_sender will send the items. This can be a IP-Address if required by your installation.<\/p>\n<p>In this case, we use the config from the zabbix install for the zabbix server.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># ceph zabbix config-set zabbix_host monitor.geekdecoder.com\n<\/pre>\n<p>The identifier parameter controls the identifier\/hostname to use as source when sending items to Zabbix. This should match the name of the Host in your Zabbix server.<\/p>\n<p>In this case we use the hostname of the server being monitored:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># ceph zabbix config-set identifier px1.geekdecoder.com\n<\/pre>\n<p>Additional configuration keys which can be configured and their default values:<\/p>\n<p>zabbix_port: 10051<br \/>\nzabbix_sender: \/usr\/bin\/zabbix_sender<br \/>\ninterval: 60<\/p>\n<p>The current configuration of the module can also be shown:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# ceph zabbix config-show\n\n<\/pre>\n<p>Test the install and sending data:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">ceph zabbix send\n<\/pre>\n<p>You should see &#8220;Sending data to Zabbix&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Zabbix plugin actively sends information to a Zabbix server like: Ceph status I\/O operations I\/O bandwidth OSD status Storage utilization<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[133],"tags":[],"class_list":["post-4760","post","type-post","status-publish","format-standard","hentry","category-zabbix"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/4760","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=4760"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/4760\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=4760"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=4760"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=4760"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}