### CASSANDRA USER-DEFINED MONITORED PARAMETERS
UserParameter=cassandra.db.Caches[*],java -jar /etc/zabbix/cmdline-jmxclient-0.10.3.jar - 127.0.0.1:7199 org.apache.cassandra.db:type=Caches,keyspace=$1,cache=$2 $3 2>&1 | awk '{print $$6;}'
UserParameter=cassandra.db.ColumnFamilies[*],java -jar /etc/zabbix/cmdline-jmxclient-0.10.3.jar - 127.0.0.1:7199 org.apache.cassandra.db:type=ColumnFamilies,keyspace=$1,columnfamily=$2 $3 2>&1 | awk '{print $$6;}'
UserParameter=cassandra.db.CompactionManager[*],java -jar /etc/zabbix/cmdline-jmxclient-0.10.3.jar - 127.0.0.1:7199 org.apache.cassandra.db:type=CompactionManager $1 2>&1 | awk '{print $$6;}'
UserParameter=cassandra.db.StorageProxy[*],java -jar /etc/zabbix/cmdline-jmxclient-0.10.3.jar - 127.0.0.1:7199 org.apache.cassandra.db:type=StorageProxy $1 2>&1 | awk '{print $$6;}'
UserParameter=cassandra.db.StorageService[*],java -jar /etc/zabbix/cmdline-jmxclient-0.10.3.jar - 127.0.0.1:7199 org.apache.cassandra.db:type=StorageService $1 2>&1 | awk '{split($$6,a,"E");if(a[2]!=""){split(a[1],c,".");b=c[1]c[2];for(i=1;i<=a[2]-length(c[2]);i++)b=b"0";} else b=a[1];print b;}'
UserParameter=cassandra.memory.Heap[*],java -jar /etc/zabbix/cmdline-jmxclient-0.10.3.jar - 127.0.0.1:7199 java.lang:type=Memory HeapMemoryUsage 2>&1 | awk '/$1/ {print $$2;}'
UserParameter=cassandra.memory.NonHeap[*],java -jar /etc/zabbix/cmdline-jmxclient-0.10.3.jar - 127.0.0.1:7199 java.lang:type=Memory NonHeapMemoryUsage 2>&1 | awk '/$1/ {print $$2;}'
UserParameter=cassandra.request.MutationStage[*],java -jar /etc/zabbix/cmdline-jmxclient-0.10.3.jar - 127.0.0.1:7199 org.apache.cassandra.request:type=MutationStage $1 2>&1 | awk '{print $$6;}'
UserParameter=cassandra.request.ReadRepairStage[*],java -jar /etc/zabbix/cmdline-jmxclient-0.10.3.jar - 127.0.0.1:7199 org.apache.cassandra.request:type=ReadRepairStage $1 2>&1 | awk '{print $$6;}'
UserParameter=cassandra.request.ReadStage[*],java -jar /etc/zabbix/cmdline-jmxclient-0.10.3.jar - 127.0.0.1:7199 org.apache.cassandra.request:type=ReadStage $1 2>&1 | awk '{print $$6;}'
UserParameter=cassandra.request.RequestResponseStage[*],java -jar /etc/zabbix/cmdline-jmxclient-0.10.3.jar - 127.0.0.1:7199 org.apache.cassandra.request:type=MutationStage $1 2>&1 | awk '{print $$6;}'
UserParameter=cassandra.runtime[*],java -jar /etc/zabbix/cmdline-jmxclient-0.10.3.jar - 127.0.0.1:7199 java.lang:type=Runtime $1 2>&1 | awk '{print $$6;}'
UserParameter=cassandra.threading[*],java -jar /etc/zabbix/cmdline-jmxclient-0.10.3.jar - 127.0.0.1:7199 java.lang:type=Threading $1 2>&1 | awk '{print $$6;}'
UserParameter=cassandra.os[*],java -jar /etc/zabbix/cmdline-jmxclient-0.10.3.jar - 127.0.0.1:7199 java.lang:type=OperatingSystem $1 2>&1 | awk '{print $$6;}'
UserParameter=cassandra.gc.parnew[*],java -jar /etc/zabbix/cmdline-jmxclient-0.10.3.jar - 127.0.0.1:7199 java.lang:type=GarbageCollector,name=ParNew LastGcInfo 2>&1 | awk '/$1/ {print $$2;}'
UserParameter=cassandra.gc.cms[*],java -jar /etc/zabbix/cmdline-jmxclient-0.10.3.jar - 127.0.0.1:7199 java.lang:type=GarbageCollector,name=ConcurrentMarkSweep LastGcInfo 2>&1 | awk '/$1/ {print $$2;}'
UserParameter=cassandra.db.DynamicSnitchScores[*],java -jar /etc/zabbix/cmdline-jmxclient-0.10.3.jar - 127.0.0.1:7199 org.apache.cassandra.db:type=DynamicEndpointSnitch,instance=* Scores 2>&1 | awk '{split($$0,a," ");for(i in a){if(match(a[i],/$1/)!=0){split(a[i],b,"=");sub(/,|}/,"",b[2]);print b[2];break;}}}'
