thelan / ceph-zabbix Goto Github PK
View Code? Open in Web Editor NEWZabbix plugin for Ceph monitoring
Zabbix plugin for Ceph monitoring
Hi,
how does it work with cephx activated.
thanks
Hi,
how does it work with cephx authentication.
thanks
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
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
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
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.
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).
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()}<>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.
You can change it to do >=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>
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)
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):
Can you help me on this please?
Kind regards
Mike
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
;;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.