{"id":5263,"date":"2020-02-13T21:51:48","date_gmt":"2020-02-13T21:51:48","guid":{"rendered":"https:\/\/www.geekdecoder.com\/?p=5263"},"modified":"2020-02-13T21:51:48","modified_gmt":"2020-02-13T21:51:48","slug":"ceph-zabbix-sender-issue-with-v14-2-5","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2020\/02\/13\/ceph-zabbix-sender-issue-with-v14-2-5\/","title":{"rendered":"Ceph &#8211; Zabbix sender issue with v14.2.5"},"content":{"rendered":"<p>After updating\/restarting the manager to v14.2.5 we are no longer able to send data to our zabbix servers. Ceph reports a non-zero exit status from zabbix_sender.<\/p>\n<p>Check to install zabbix-server.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\napt install zabbix-sender\n<\/pre>\n<p>Info:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# ceph mon versions\n<\/pre>\n<p>Output:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n{\n    &quot;ceph version 16.2.7 (f9aa029788115b5df5eeee328f584156565ee5b7) pacific (stable)&quot;: 4\n}\n<\/pre>\n<p>Check Debian version<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># cat \/etc\/debian_version\n11.2\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# lsb_release -a\nNo LSB modules are available.\nDistributor ID: Debian\nDescription:    Debian GNU\/Linux 11 (bullseye)\nRelease:        11\nCodename:       bullseye\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nceph -s\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n  cluster:\n    id:     20a806df-b3f4-4032-ab8e-ae15aef1e836\n    health: HEALTH_WARN\n            Failed to send data to Zabbix\n            mon px1 is low on available space\n\n  services:\n    mon: 3 daemons, quorum px1,px2,px3 (age 8d)\n    mgr: px1(active, since 8d), standbys: px2, px3\n    osd: 32 osds: 32 up (since 8d), 32 in (since 11d)\n\n  data:\n    pools:   7 pools, 640 pgs\n    objects: 3.52M objects, 13 TiB\n    usage:   53 TiB used, 124 TiB \/ 176 TiB avail\n    pgs:     639 active+clean\n             1   active+clean+scrubbing+deep\n\n  io:\n    client:   0 B\/s rd, 23 MiB\/s wr, 0 op\/s rd, 34 op\/s wr\n\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nceph health detail\nHEALTH_WARN Failed to send data to Zabbix; mon px1 is low on available space\nMGR_ZABBIX_SEND_FAILED Failed to send data to Zabbix\n    \/usr\/bin\/zabbix_sender exited non-zero: zabbix_sender &#x5B;4088351]: DEBUG: answer &#x5B;]\nzabbix_sender &#x5B;4088351]: Warning: incorrect answer from server &#x5B;]\n<\/pre>\n<p>Setting &#8220;debug mgr = 20&#8221; yields no additional information. Zabbix configuration in ceph has not changed since the v14.2.5 update, and was working under v14.2.4:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># ceph zabbix config-show\n{&quot;zabbix_port&quot;: 10050, &quot;zabbix_host&quot;: &quot;stats.myzabbix.host&quot;, &quot;identifier&quot;: &quot;px1.cephserver.host&quot;, &quot;zabbix_sender&quot;: &quot;\/usr\/bin\/zabbix_sender&quot;, &quot;interval&quot;: 60}<\/pre>\n<p>So, how to reconfigure it.<br \/>\nSOME DETAILS:<\/p>\n<p>Zabbix plugin<br \/>\nThe Zabbix plugin actively sends information to a Zabbix server like:<br \/>\nCeph status<br \/>\nI\/O operations<br \/>\nI\/O bandwidth<br \/>\nOSD status<br \/>\nStorage utilization<br \/>\nRequirements<\/p>\n<p>The plugin requires that the zabbix_sender executable is present on all machines running ceph-mgr. It can be installed on most distributions using the package manager.<br \/>\nDependencies.<\/p>\n<p>Installing zabbix_sender can be done under Ubuntu or CentOS using either apt or dnf.<\/p>\n<p>On Ubuntu Xenial:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# apt install zabbix-agent\n<\/pre>\n<p>On Fedora:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# dnf install zabbix-sender\n<\/pre>\n<p>Enabling<\/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<\/pre>\n<p>Configuration<\/p>\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. 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. When the identifier parameter is not configured the ceph- of the cluster will be used when sending data to Zabbix.<\/p>\n<p>This would for example be ceph-c4d32a99-9e80-490f-bd3a-1d22d8a7d354<\/p>\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<br \/>\nConfiguration keys<br \/>\nConfiguration keys can be set on any machine with the proper cephx credentials, these are usually Monitors where the client.admin key is present.<br \/>\nceph zabbix config-set<br \/>\nFor example:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# ceph zabbix config-set zabbix_host zabbix.localdomain\n# ceph zabbix config-set identifier ceph.eu-ams02.local\n<\/pre>\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>Manually sending data<\/p>\n<p>If needed the module can be asked to send data immediately instead of waiting for the interval.<\/p>\n<p>This can be done with this command:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># ceph zabbix send\n<\/pre>\n<p>The module will now send its latest data to the Zabbix server.<br \/>\nDebugging<\/p>\n<p>Should you want to debug the Zabbix module increase the logging level for ceph-mgr and check the logs.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n&#x5B;mgr]\n    debug mgr = 20\n\n<\/pre>\n<p>With logging set to debug for the manager the plugin will print various logging lines prefixed with mgr[zabbix] for easy filtering.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After updating\/restarting the manager to v14.2.5 we are no longer able to send data to our zabbix servers. Ceph reports a non-zero exit status from zabbix_sender. Check to install zabbix-server. apt install zabbix-sender Info: # ceph mon versions Output: { &quot;ceph version 16.2.7 (f9aa029788115b5df5eeee328f584156565ee5b7) pacific (stable)&quot;: 4 } Check Debian version # cat \/etc\/debian_version 11.2 &#8230; <a title=\"Ceph &#8211; Zabbix sender issue with v14.2.5\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2020\/02\/13\/ceph-zabbix-sender-issue-with-v14-2-5\/\" aria-label=\"Read more about Ceph &#8211; Zabbix sender issue with v14.2.5\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[90],"tags":[],"class_list":["post-5263","post","type-post","status-publish","format-standard","hentry","category-proxmox"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/5263","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=5263"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/5263\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=5263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=5263"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=5263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}