Home Directory Plugins Java Applications and Servers Cassandra number of read and write operations in a given time period

Cassandra number of read and write operations in a given time period

Bookmark and Share

Current Version
2.0
Last Release Date
2011-12-08
Compatible With
  • Nagios 3.x
E-mail
License
GPL
Hits
43968
Files:
FileDescription
cass_read_write_speedcass_read_write_speed
This Plug-in monitors Cassandra number of read and write operations in a given time period, i.e. Read operations per second / write Operations per second.

it fetches WriteOperations or ReadOperations from Nagios JMX plugin and stores the values with timestamp in a log file at /tmp directory, and parses this log file to create the Read/write per second value.

####Sample Log entries###
cat /tmp/Cass_ReadOperations.log
1323353650=JMX CRITICAL ReadOperations=0
1323353710=JMX CRITICAL ReadOperations=120

so the Read per second would be (120-0)/(1323353710-1323353650) i.e 2 per Second.



This take three parameters as input 1) Option i.e. Read operations or write Operations and Warning and Critical Values.
To run this Plugin you should first download the check_jmx plugin for Nagios. Since it reads the Values from Check_JMX plugin.

This Plug-in monitors Cassandra number of read and write operations in a given time period, i.e. Read operations per second / write Operations per second.

it fetches WriteOperations or ReadOperations from Nagios JMX plugin and stores the values with timestamp in a log file at /tmp directory, and parses this log file to create the Read/write per second value.

####Sample Log entries###
cat /tmp/Cass_ReadOperations.log
1323353650=JMX CRITICAL ReadOperations=0
1323353710=JMX CRITICAL ReadOperations=120

so the Read per second would be (120-0)/(1323353710-1323353650) i.e 2 per Second.



This take three parameters as input 1) Option i.e. Read operations or write Operations and Warning and Critical Values.



Sample Run.

# ./cass_read_write-rate -h
Usage: ./cass_read_write-rate -o