Monitoring ceph with Zabbix 6.4

Mar 30, 2020
156
18
38
44
Hy to all!!

Does anybody know if the zabbix template "Ceph by zabbix agent2" V6.4 is working with ProxmoxVE?
As I can see the templates uses Ceph API to collect data. Authenticated via Ceph User,API Auth Key and URL https://<server>:8003 .

If Ceph API isn't aktive, is it save to enable it?
How to create such a ceph-user with API key?
Maybe there exists a better/ out of the box solution?

There are so many questions, hope someone can help

Zabbix Template:
https://www.zabbix.com/de/integrations/ceph

kr
Roland
 
Hy Gurupert!

Thanks for help!

I had already testet this , but always I got error
Code:
mgr.server reply reply (1) Operation not permitted
More see: https://forum.proxmox.com/threads/ceph-zabbix-send-fehler-nach-update-auf-pve-6-1.61968/

Second problem the "ceph zabbix sender" use the Ceph Network which has no connection to my zabbix server
While we won't enable ceph network routing to internal networks I found module "ceph by zabbix agent 2"


Seems module "ceph by zabbix agent 2" tries via "Zabbix agent active" to connect to Ceph Api Port 8003 and collects data. After that data is sent to zabbix server via Frontendinterface.

Maybe the newer way, also plugin is already default in zabbix 6.4

kr
Roland

 
Hi,
Did you get this resolved? I also have a small 3 node proxmox cluster which uses some ceph storage "behind" the nodes. I was wondering which node to attach the zabbix template (gleaned from the ceph module) to - especially if I give the identifier configuration key - as I dont know at any one time which node will be running the mgr daemon

Not that I have overcome the Operation not permitted error yet anyway when I manually test it.

The other template module requires a proxmox connection string like {$CEPH.CONNSTRING} and I cant figure out what that should be as the ceph is behind 3 nodes and they arent listening on 8003 or any other port for a restful connection as far as i can see with lsof

Getting confused now...

Regards,
Stephen.
 
Hy Stephan!

Sorry, I did not have time to get ceph Template work with Proxmox. Think the problem is, that the manager reports via Ceph-Network which will not routed to our zabbix server.

For a global overview this schould be ok. Every Node have this info, no need to know about the managers

* Integratet Zabbix Proxmox Tempalte
Key: ceph.health
* Api Request
https://{HOST.CONN}:{$PVE.URL.PORT}/api2/json/cluster/ceph/status

kr
Roland
 
  • Like
Reactions: sj200449
Hy Stephan!

Sorry, I did not have time to get ceph Template work with Proxmox. Think the problem is, that the manager reports via Ceph-Network which will not routed to our zabbix server.

For a global overview this schould be ok. Every Node have this info, no need to know about the managers

* Integratet Zabbix Proxmox Tempalte
Key: ceph.health
* Api Request
https://{HOST.CONN}:{$PVE.URL.PORT}/api2/json/cluster/ceph/status

kr
Roland

How do you get the ceph.health value into the Zabbix Proxmox Template?
 
How do you get the ceph.health value into the Zabbix Proxmox Template?
Hi,
I have not chased this any further yet as I got distracted by other work. The Proxmox template works fine , but I havent done anything else yet.
-Stephen.
 
Hi, sorry to bother you.
Can you get a bit more in Detail?
We get the CEPH-Data in Zabbix-Item but have Problems after to just get the "Health-Value".

Thx
Never mind... it is data.ceph.status in depending Item in Zabbix....
 
Hy Stephan!

Sorry, I did not have time to get ceph Template work with Proxmox. Think the problem is, that the manager reports via Ceph-Network which will not routed to our zabbix server.

For a global overview this schould be ok. Every Node have this info, no need to know about the managers

* Integratet Zabbix Proxmox Tempalte
Key: ceph.health
* Api Request
https://{HOST.CONN}:{$PVE.URL.PORT}/api2/json/cluster/ceph/status

kr
Roland
Hello
I have followed https://geekistheway.com/2022/12/31/monitoring-proxmox-ve-using-zabbix-agent/ and have that working .

I am confused on how to get ceph data to zabbix. You seem to mention that the following needs to be set up:
* Integratet Zabbix Proxmox Tempalte

Key: ceph.health

* Api Request

https://{HOST.CONN}:{$PVE.URL.PORT}/api2/json/cluster/ceph/status

Question - where is that data put?
 
Hello
I have followed https://geekistheway.com/2022/12/31/monitoring-proxmox-ve-using-zabbix-agent/ and have that working .

I am confused on how to get ceph data to zabbix. You seem to mention that the following needs to be set up:
* Integratet Zabbix Proxmox Tempalte

Key: ceph.health

* Api Request

https://{HOST.CONN}:{$PVE.URL.PORT}/api2/json/cluster/ceph/status

Question - where is that data put?
Create something like this in the Template. This will put the RAW JSON-Data for CEPH in Zabbix.
1693375157337.png

2nd you can create an Depentent item:
1693375261206.png

And have a trigger on it or anything you want....
 
Thanks.

What should be used for $PVE.URL.PORT ? 443? or 8006 or ?
Default is 8006 and should already be set in the default Macro-Value.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!