yubu / zabbix-cassandra-template

7 stars 18 forks source link

connect to database #6

Open zahrasamiei opened 5 years ago

zahrasamiei commented 5 years ago

hi.i am using your xml file as an template for zabbix(import).when i trying to add template to a host i got this error:“jmx[“org.apache.cassandra.metrics:name=CompletedTasks,type=Compaction”, Value]”. how can i fix it? i dont know how i can connect cassandra database to zabbix for monitoring and in https://blog.pythian.com/monitor-cassandra-using-zabbix/?unapproved=9624665&moderation-hash=a16dbe32f1560b9d7ae46a6fffa1295b#comment-9624665 i couldnt find how connected to this:(

yubu commented 5 years ago

Hi Zahrasamiei,

The two major parameters here is Zabbix server version and Cassandra cluster version. This template was built for Zabbix 3.2 and Cassandra 2.0.x (old versions as for now). Plus JMX Cassandra port, which should be accessible by Zabbix server.

These parameters you should add to xml file before you'll try to import .xml file to Zabbix.

Try to comment out problematic lines in . xml.

Look, nodetool is talking JMX to the Cassandra cluster. If you have parameters for remote nodetool connection it should work for Zabbix also. If you can use the nodetool like: nodetool -u cas -pw cas info it should work in Zabbix,

Note: Zabbix Java Gateway should be installed and running.

Hope it helps, -y

seanfulton commented 3 years ago

Is there a way to set JMX authentication from the host or the template file before importing it? Once it is imported, I see that we can set the JMX user/pw for each item, but that is big effort. Is there a way to include it at the HOST level or in the template?

yubu commented 3 years ago

I'm not sure, but you can try to export the correct configuration (after you've set user/pass) from Zabbix, and if the user/pass is there use it as a template.