Git Product home page Git Product logo

ceph-zabbix's Introduction

ceph-zabbix

Zabbix plugin for Ceph monitoring

Installation

Edit the zabbix_agent_ceph_plugin.conf to set the path to the bash script (default is /opt/ceph-status.sh) then add it to your zabbix agent config

Add the xml template and link them to your node.

Link the ceph templates to your hosts

What's next

Actually zabbix agent pull data from script. One option is to send directly from the script to zabbix trough zabbix-trapper

ceph-zabbix's People

Contributors

florentcoppint avatar jalavoy avatar jmaitrehenry avatar macmonac avatar seancallaway avatar thelan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ceph-zabbix's Issues

Problem with bug ceph

Ceph return:
Received value [libust[25295/25295]: Warning: HOME environment variable not set. Disabling LTTng-UST per-user tracing. (in setup

this event discribed here:
http://forum.proxmox.com/threads/24031-Proxmox4-and-ceph

all elements in Templace_Ceph_Cluster
return: Received value [libust[25295/25295]: Warning: HOME environment variable not set. Disabling LTTng-UST per-user tracing. (in setup

Could you fix this problem in script: ceph-status.sh
Maybi need append filter and ignore this text message in variables which return ceph.

New attributes in cluster health trigger cause import to fail in zabbix 3.2.6

Zabbix import complained about each of these. and they dont seem to be doing anything (well the description one is also a duplicate) so I removed them and it imported.

index 7f4f426..f305d4b 100644
--- a/zabbix_templates/zbx_ceph_cluster_template.xml
+++ b/zabbix_templates/zbx_ceph_cluster_template.xml
@@ -1234,21 +1234,14 @@
         </trigger>
         <trigger>
             <expression>{Template_Ceph_Cluster:ceph.health.last()}&lt;&gt;1</expression>
-            <recovery_mode>0</recovery_mode>
-            <recovery_expression/>
             <name>Ceph cluster is not healthy</name>
-            <correlation_mode>0</correlation_mode>
-            <correlation_tag/>
             <url/>
             <status>0</status>
             <priority>5</priority>
             <description>This will throw an alert if status is anything other than healthy. &#13;
 You can change it to do &gt;=3 if you want it to only alert on error.</description>
-            <description/>
             <type>0</type>
-            <manual_close>0</manual_close>
             <dependencies/>
-            <tags/>
         </trigger>
     </triggers>
     <graphs>

i found some wrong in your shell.

HI,
i found your ceph monitor by zabbix, and i think it have some problems.
When zabbix try to get the monitor item's , if have 10 item, your shell will run 10 times. And your shell will get all the info by ceph. So when zabbix 10s get 10 item, your shell will run 100 times, and ceph's command will run **times.
I think you can run the shell one time by other way like crontab , and it get the info once to tmpfile, zabbix parameters can set grep “item" in tmpfile, i think this way is health to system (to zabbix and system).

The data items in zabbix are not supported

I want to use Zabbix monitoring plugin for Ceph monitoring, but when I installed everything according to the instructions in the logs get this:
zabbix_get -s 10.10.3.11 -k ceph.ops
2016-07-21 17:59:52.128856 7f50e6da6700 -1 auth: unable to find a keyring on /etc/ceph/ceph.client.admin.keyring: (13) Permission denied
2016-07-21 17:59:52.128865 7f50e6da6700 0 librados: client.admin initialization error (13) Permission denied
Error connecting to cluster: PermissionDeniedError
2016-07-21 17:59:52.272347 7f2cd9b81700 -1 auth: unable to find a keyring on /etc/ceph/ceph.client.admin.keyring: (13) Permission denied
2016-07-21 17:59:52.272357 7f2cd9b81700 0 librados: client.admin initialization error (13) Permission denied
Error connecting to cluster: PermissionDeniedError

please help me

Template / script mismatch

Zabbix temaplate contains ceph.osd_in and ceph.osd_up parameters, while ceph-status.sh works with just in and up args:

<name>Ceph OSD in %</name>
<type>0</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>ceph.osd_in</key>
  "in")
    ceph_osd_in_percent
  ;;

使用中的注意事项

1、zabbix 3.4相较之前版本有大的改动,故无法导入模板,而3.2是可以的。
2、ceph.rados_used_ratio 该键值的计算公式有问题,修改如下:
默认:ceph.rados_used/ceph.rados_total
修改后 :last(ceph.rados_used)/last(ceph.rados_total)

Error initializing cluster client - proxmox ceph cluster

Hey there,
thank you for developing a zabbix-ceph monitoring! I have managed to install the monitor script on the ceph server node and configured the zabbix client. I have a 4 node proxmox cluster with ceph enabled. On the ceph server i have set the setuid bit on the /opt/ceph-status.sh. and I can read successfully from it:

-r-sr-xr-x 1 root root 5831 Jun 15 21:49 ceph-status.sh

root@vmhost01:/opt# /opt/ceph-status.sh wrbps
56546

now when I import the templates to the zabbix server and enable the template on my host then i get a status not supported and then the following error (on all the ceph cluster items):

Received value [Error initializing cluster client: Error('error calling conf_read_file: errno EACCES',)Error initializing cluster client: Error('error calling conf_read_file: errno EACCES',)0] is not suitable for value type [Numeric (unsigned)] and data type [Decimal]

Can you help me on this please?
Kind regards
Mike

handle recoverying speed / ops

Extract values from following line:

2013-03-05 17:51:43.787306 mon.0 [INF] pgmap v196284: 1260 pgs: 2 active, 1151 active+clean, 107 peering; 493 MB data, 11522 MB used, 460 GB / 479 GB avail; 4095MB/s rd, 4079MB/s wr, 4095Mop/s; recovering 0 o/s, 4095MB/s

Non Functional

Nothing works with this template or script. The zabbix-agent runs as the zabbix user, and is not allowed to access ceph commands by default.

auth: unable to find a keyring on /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin: (2) No such file or directory

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.