From 87d9e10a4dfec13c63f3c1ebe97e26668d33708a Mon Sep 17 00:00:00 2001 From: Tony Garcia Date: Wed, 9 Aug 2017 15:10:34 -0500 Subject: [PATCH 1/2] Updating documentation. --- README.md | 323 ++++++++++++++++++++++++++++++++++++++++--------- src/recap.5 | 2 +- src/recap.conf | 59 ++++++--- 3 files changed, 308 insertions(+), 76 deletions(-) diff --git a/README.md b/README.md index 9b43139..cb04303 100644 --- a/README.md +++ b/README.md @@ -1,89 +1,302 @@ # Recap -recap is a reporting script that generates reports of -various information about the server. +[![GitHub release](https://img.shields.io/github/release/rackerlabs/recap.svg)](https://github.com/rackerlabs/recap/releases/latest) +[![License](https://img.shields.io/badge/license-GPLv2-red.svg)](https://raw.githubusercontent.com/rackerlabs/recap/master/COPYING) +[![GitHub stars](https://img.shields.io/github/stars/rackerlabs/recap.svg?style=social&label=Star)](https://github.com/rackerlabs/recap) + +**recap** is a system status reporting tool. A reporting script that generates reports of various information about the server. ## Contribution -Contribution guidelines can be found in CONTRIBUTING.md. +Contribution guidelines can be found in [CONTRIBUTING.md](https://github.com/rackerlabs/recap/blob/master/CONTRIBUTING.md) ## Dependencies -* git - Installation -* bc - arithmetic calculations -* net-tools - netstat report -* sysstat - provides 'iostat' for I/O statistics -* iotop - simple top-like I/O monitor +- bash >= 4 +- bc +- coreutils +- gawk +- grep +- iotop +- net-tools +- procps +- psmisc +- sysstat >= 9 ## Installation -1. Install the required dependencies: - * Debian/Ubuntu - `apt-get install bc gawk git iotop make net-tools psmisc sysstat` - * RHEL/CentOS - `yum install bc gawk git iotop make net-tools psmisc sysstat` + +It is highly recommended to make use of a package to install `recap` is the easiest way to keep it updated whenever there is a new release. + +### Package + +`recap` is provided in [EPEL](https://fedoraproject.org/wiki/EPEL) for Red Hat based distros. A list of the EPEL repos is [here](https://bodhi.fedoraproject.org/updates/?packages=recap). + +At the moment there is no public repository for Debian based distros. + +### Manual + +1. Install the required dependencies. 2. Clone this repository: `git clone https://github.com/rackerlabs/recap.git` 3. Change into the new directory: `cd recap` -4. Install the program: `make install` +4. Install the program: `sudo make install` The information captured will be found in log files in the `/var/log/recap/` directory. -## Configuration +## Cron and Configuration + +### Cron + +The cron file (`/etc/cron.d/recap`) is used to determine the execution time of `recap` and `recaplog`. By default the cron execution for `recap` is enabled to run every 10 min. and `recaplog` is expected to run every day at 1 am, but those can be adjusted as needed. + +### Configuration + +The following variables are commented out with the defaults values in the configuration file `/etc/recap` which can be overriden. + +#### Settings shared by recap scripts + +- **BASEDIR** - Directory where the logs are saved. + + Default: `BASEDIR="/var/log/recap"` + +- **BACKUP_ITEMS** - Is the list of reports generated and used by recap scripts + + Default: `BACKUP_ITEMS="fdisk mysql netstat ps pstree resources"` + + +#### Settings used only by `recaplog` + +- **LOG_COMPRESS** - Enable or disable log compression. + + Default: `LOG_COMPRESS=1` + +- **LOG_EXPIRY** - Log files will be deleted after LOG_EXPIRY days + + Default: `LOG_EXPIRY=15` + +#### Settings used only by `recap` + +- **MAILTO** - Send a report to the email defined. + + Default: `MAILTO=""` + +- **MIN_FREE_SPACE** - Minimum free space (in MB) required in `${BASEDIR}` to run recap, a value of 0 deactivates this check. + + Default: `MIN_FREE_SPACE=0` + +- **MAXLOAD** - Maximum load allowed to run recap, abort if load is higher than this value. + + Default: `MAXLOAD=10` + + +#### Reports + +These are the type of reports generated and their dependencies. + +##### fdisk + +- **USEFDISK** - Generates logs from "fdisk `${OPTS_FDISK}`" + + Default: `USEFDISK="no"` + +##### mysql + +- **USEMYSQL** - Generates logs from "mysqladmin status" + + Makes use of `DOTMYDOTCNF`. + + Required by: `USEMYSQLPROCESSLIST`, `USEINNODB` + + Default: `USEMYSQL="no"` + +- **USEMYSQLPROCESSLIST** - Generates logs from "mysqladmin processlist" + + Makes use of `DOTMYDOTCNF` and `MYSQL_PROCESS_LIST` + + Requires: `USEMYSQL` + + Default: `USEMYSQLPROCESSLIST="no"` + +- **USEINNODB** - Generates logs from "mysql show engine innodb status" + + Makes use of `DOTMYDOTCNF` + + Requires: `USEMYSQL` + + Default: `USEINNODB="no"` + + +##### netstat + +- **USENETSTAT** - Generates network stats from "netstat `${OPTS_NETSTAT}`" + + Required by: `USENETSTATSUM` + + Default: `USENETSTAT="yes"` + + +- **USENETSTATSUM** - Generates logs from "netstat `${OPTS_NETSTAT_SUM}`". + + Requires: `USENETSTAT` + + Default: `USENETSTATSUM="no"` + +##### ps + +- **USEPS** - Generates logs from "ps" + + Options can be modified in `OTPS_PS` + + Default: `USEPS="yes"` + +##### pstree + +- **USEPSTREE** - Generates logs from pstree + + Options can be modified in `OTPS_PSTREE` + + Default: `USEPSTREE="no"` + +##### resources + +- **USERESOURCES** - Generates "resources"(uptime, free, vmstat, iostat, iotop) log + + Required by: `USEDF`, `USESLAB`, `USESAR`, `USESARQ`, `USESARR`, `USEFULLSTATUS` + + Default: `USERESOURCES="yes"` + + +- **USEDF** - Generates logs from df + + Requires: `USERESOURCES` + + Options can be modified in `OPTS_DF` + + Default: `USEDF="yes"` + +- **USESLAB** - Generates logs from the slab table. + + Requires: `USERESOURCES` + + Default: `USESLAB="no"` + + +- **USERSAR** - Generates logs from sar. + + Requires: `USERESOURCES` + + Default: `USESAR="yes"` + +- **USESARQ** - Generates logs from "sar -q" (logs queue lenght, load data) + + Requires: `USERESOURCES` + + Default: `USESARQ="no"` + +- **USESARR** - Generates logs from"sar -r" (logs memory data) + + Requires: `USERESOURCES` + + Default: `USESARR="no"` + +- **USEFULLSTATUS** - Performs an http request(GET) to the URL defined in `OPTS_STATUSURL`. Needs a webserver configured to respond to this request. Nginx(nginx_status) and Apache HTTPD(server-stats) offer this functionality that needs to be enabled. + + Requires: `USERESOURCES` + + Default: `USEFULLSTATUS="no"` + + +#### Options + +Options used by the tools generating the reports + +- **DOTMYDOTCNF** - Defines the path to the mysql client configuration file + + Required by: `USEMYSQL`, `USEMYSQLPROCESSLIST`, `USEINNODB` + + Default: `DOTMYDOTCNF="/root/.my.cnf"` + +- **MYSQL_PROCESS_LIST** - Format to display MySQL process list, options are "table" or "vertical". + + Required by: `USEMYSQLPROCESSLIST` + + Default: `MYSQL_PROCESS_LIST="table"` + +- **OPTS_CURL** - Options used by curl. + Required by: `USEFULLSTATUS` + + Default: `OPTS_CURL="-Ls"` + +- **OPTS_DF** - df options + + Required by: `USEDF` + + Default: `OPTS_DF="-x nfs"` + +- **OPTS_FDISK** - Option used by USEFDISK. + + Required by: `USEFDISK` + + Default: `OPTS_FDISK="-l"` + +- **OPTS_FREE** - free options + + Required by: `USEFREE` + + Default: `OPTS_FREE=""` + +- **OPTS_IOSTAT** - iostat options + + Required by: `USERESOURCES` + + Default: `OPTS_IOSTAT="-t -x 1 3"` + +- **OPTS_IOTOP** - iotop options + + Required by: `USERESOURCES` + + Default: `OPTS_IOTOP="-b -o -t -n 3"` + +- **OPTS_NETSTAT** - netstat options + + Required by: `USENETSTAT` + + Default: `OPTS_NETSTAT="-ntulpae"` + +- **OPTS_NETSTAT_SUM** - netstat statistics options -The cron file (`/etc/cron.d/recap`) is used to determine the execution time of -`recap` and `recaplog`. By default the cron execution for `recap` is enabled -to run every 10 min. and `recaplog` is expected to run -every day at 1 am, but those can be adjusted as needed. + Required by: `USENETSTATSUM` -The following variables are defined with defaults inside the -script but can be overwritten if these variables are defined -in /etc/recap + Default: `OPTS_NETSTAT_SUM="-s"` -``` -DATE=`date +%Y-%m-%d_%H:%M:%S -``` +- **OPTS_PS** - ps options -`DATE` is the format of the date header at the top of the reports/email + Required by: `USEPS` -Additional optional variables are as follows: + Default: `OPTS_PS="auxfww"` -`MAILTO` i.e., `MAILTO="username@example.com"` +- **OPTS_PSTREE** - pstree options -`USEPS` do you want to generate the ps.log? (no/yes) default yes + Required by: `USEPSTREE` -`USERESOURCES` do you want to generate the resources.log? (no/yes) default yes + Default: `OPTS_PSTREE="-p"` -`USESAR` do you want to generate sar reports? (no/yes) default no -`USESARR` do you want to generate sar -r reports? (no/yes) default no +- **OPTS_STATUSURL** - URL to perform the http request when USEFULLSTATUS is enabled. -`USESARQ` do you want to generate sar -q reports? (no/yes) default no + Required by: `USEFULLSTATUS` -`USEFULLSTATUS` do you want to generate "service httpd fullstatus" reports? (no/yes) default no + Default: `OPTS_STATUSURL="http://localhost:80/"` -See the recap man pages for additional optional reports. Some reports depend on -parent reports to generate the file they will write their output to. +- **OPTS_VMSTAT** - vmstat options -For instance, the `USESAR` reports above all rely on having `USERESOURCES` enabled. + Required by: `USERESOURCES` -The script will never need to be modified for these variables, they -can all be defined in `/etc/recap` + Default: `OPTS_VMSTAT="-S M 1 3"` -If you want a backup of the last file created before a reboot -uncomment the `@reboot` line in the crontab file `/etc/cron.d/recap` +## Changelog & Contributions -Uncomment the lines to enable the backup +Information about changes and contributors is documented in the [CHANGELOG.md](https://github.com/rackerlabs/recap/blob/master/CHANGELOG.md) -## Info & License -``` -Package name: recap -Author: The Common Public -Maintainers: Brent Oswald, Benjamin Graham, Simone Soldateschi -License: GPL 2.0 -Homepage: https://github.com/rackerlabs/recap/ +## License -Original authors at Rackspace (http://www.rackspace.com): - -Jacob Walcik - -Carl Thompson +*recap* is licensed under the [GNU General Public License v2.0](https://raw.githubusercontent.com/rackerlabs/recap/master/COPYING) -Past contributors at Rackspace: - -David King - -Hans duPlooy - -All other should be defined in CHANGELOG.md -``` diff --git a/src/recap.5 b/src/recap.5 index c94f472..214d9fa 100644 --- a/src/recap.5 +++ b/src/recap.5 @@ -188,7 +188,7 @@ netstat options .IP \fBOPTS_NETSTAT_SUM\fR .br -netstat statics options +netstat statistics options (default: "-s") .IP \fBOPTS_PS\fR diff --git a/src/recap.conf b/src/recap.conf index 59f9e55..2f64f2a 100644 --- a/src/recap.conf +++ b/src/recap.conf @@ -42,11 +42,13 @@ # Example: MAILTO="user@example.com" #MAILTO="" -# Minimum free space (in MB) required in ${BASEDIR} to run recap +# MIN_FREE_SPACE - Minimum free space (in MB) required in ${BASEDIR} to +# run recap, a value of 0 deactivates this check. # Example, ensure there are at least 5MB: MIN_FREE_SPACE=5 #MIN_FREE_SPACE=0 -# Maximum load allowed to run recap, abort if load is higher than this value +# MAXLOAD - Maximum load allowed to run recap, abort if load is higher +# than this value. # Example, don't run recap if server load is above 4: MAXLOAD=4 #MAXLOAD=10 @@ -54,7 +56,7 @@ ### recap Reports ## Report: fdisk -# USEFDISK - Generage logs from "fdisk ${OPTS_FDISK}" +# USEFDISK - Generates logs from "fdisk ${OPTS_FDISK}" # Options can be modified in OPTS_FDISK # Example, to enable: USEFDISK="yes" #USEFDISK="no" @@ -62,7 +64,7 @@ ## Report: mysql # USEMYSQL - Generates logs from "mysqladmin status" # makes use of DOTMYDOTCNF. -# required by: USEMYSQLPROCESSLIST, USEINNODB +# Required by: USEMYSQLPROCESSLIST, USEINNODB # Example, to enable: USEMYSQL="yes" #USEMYSQL="no" @@ -80,7 +82,7 @@ ## Report: netstat # USENETSTAT - Generates network stats from "netstat ${OPTS_NETSTAT}" -# required by: USENETSTATSUM +# Required by: USENETSTATSUM # Example, to disable: USENETSTATSUM="no" #USENETSTAT="yes" @@ -103,7 +105,7 @@ ## Report: resources # USERESOURCES - Generates "resources"(uptime, free, vmstat, iostat, iotop) log -# required by: USEDF, USESLAB, USESAR, USESARQ, USESARR, USEFULLSTATUS +# Required by: USEDF, USESLAB, USESAR, USESARQ, USESARR, USEFULLSTATUS # Example, to disable: USERESOURCES="no" #USERESOURCES="yes" @@ -143,61 +145,78 @@ ### Options used by the tools generating the reports -# required by: USEMYSQL, USEMYSQLPROCESSLIST, USEINNODB +# DOTMYDOTCNF - Defines the path to the mysql client configuration file +# Required by: USEMYSQL, USEMYSQLPROCESSLIST, USEINNODB # Example: DOTMYDOTCNF="/root/.my_alternative.cnf" #DOTMYDOTCNF="/root/.my.cnf" -# required by: USEMYSQLPROCESSLIST +# MYSQL_PROCESS_LIST - Format to display MySQL process list, options are +# "table" or "vertical". This requires that USEMYSQLPROCESSLIST be set +# "yes". +# Required by: USEMYSQLPROCESSLIST # Example, generate vertical output: MYSQL_PROCESS_LIST="vertical" #MYSQL_PROCESS_LIST="table" -# required by: USEFULLSTATUS +# OPTS_CURL - Options used by curl, when using USEFULLSTATUS +# Required by: USEFULLSTATUS # Example: OPTS_CURL="-skLv" #OPTS_CURL="-Ls" -# required by: USEDF +# OPTS_DF - df options +# Required by: USEDF # Example: OPTS_DF="-PhT -x nfs" #OPTS_DF="-x nfs" -# required by: USEFDISK +# OPTS_FDISK - Option used by USEFDISK. +# Required by: USEFDISK # Example: OPTS_FDISK="-o gpt -l" #OPTS_FDISK="-l" -# required by: USEFREE +# OPTS_FREE - free options +# Required by: USEFREE # Example: OPTS_FREE="-lwt" #OPTS_FREE="" -# required by: USERESOURCES +# OPTS_IOSTAT - iostat options +# Required by: USERESOURCES # used by "iostat" # Example: OPTS_IOSTAT="-Ntx 3 3" #OPTS_IOSTAT="-t -x 1 3" -# required by: USERESOURCES +# OPTS_IOTOP - iotop options +# Required by: USERESOURCES # used by "iotop" # Example: OPTS_IOTOP="-botqn3 -d3" #OPTS_IOTOP="-b -o -t -n 3" -# required by: USENETSTAT +# OPTS_NETSTAT - netstat options +# Required by: USENETSTAT # Example: OPTS_NETSTAT="-punteCola" #OPTS_NETSTAT="-ntulpae" -# required by: USENETSTATSUM +# OPTS_NETSTAT_SUM - netstat statistics options +# Required by: USENETSTATSUM # Example: OPTS_NETSTAT_SUM="-stuUSw" #OPTS_NETSTAT_SUM="-s" -# required by: USEPS +# OPTS_PS - ps options +# Required by: USEPS # Example: OPTS_PS="-Laef" #OPTS_PS="auxfww" -# required by: USEPSTREE +# OPTS_PSTREE - pstree options +# Required by: USEPSTREE # Example: OPTS_PSTREE="-cApu" #OPTS_PSTREE="-p" -# required by: USEFULLSTATUS +# OPTS_STATUSURL - URL to perform the http request when USEFULLSTATUS is +# enabled +# Required by: USEFULLSTATUS # Example: OPTS_STATUSURL="http://localhost/nginx_status" #OPTS_STATUSURL="http://localhost:80/" -# required by: USERESOURCES +# OPTS_VMSTAT - vmstat options +# Required by: USERESOURCES # used by "vmstat" # Example: OPTS_VMSTAT="-aSM 3 3" #OPTS_VMSTAT="-S M 1 3" From 81bd45e312632869cf4aa37c1040e61223e64638 Mon Sep 17 00:00:00 2001 From: Tony Garcia Date: Thu, 10 Aug 2017 09:05:06 -0500 Subject: [PATCH 2/2] Correcting hyphens vs minus/dashes. --- src/recap.5 | 24 ++++++++++++------------ src/recap.8 | 4 ++-- src/recaplog.8 | 16 ++++++++-------- src/recaptool.8 | 12 ++++++------ 4 files changed, 28 insertions(+), 28 deletions(-) diff --git a/src/recap.5 b/src/recap.5 index 214d9fa..9f90dbe 100644 --- a/src/recap.5 +++ b/src/recap.5 @@ -21,7 +21,7 @@ .\" .TH RECAP 5 "July 7, 2017" .SH NAME -recap \- dumps periodic information about running applications and resource usage +recap - dumps periodic information about running applications and resource usage .SH SYNOPSIS .BI "recap" .SH DESCRIPTION @@ -89,11 +89,11 @@ Can be set to yes or no depending on whether or not "sar" output should be store .IP \fBUSESARQ\fR .br -Can be set to yes or no depending on whether or not "sar -q"(Queue lenght, load) output should be stored in the report output. This requires that USERESOURCES be set to yes. (default: no) +Can be set to yes or no depending on whether or not "sar \-q"(Queue length, load) output should be stored in the report output. This requires that USERESOURCES be set to yes. (default: no) .IP \fBUSESARR\fR .br -Can be set to yes or no depending on whether or not "sar -r"(memory data) output should be stored in the report output. This requires that USERESOURCES be set to yes. (default: no) +Can be set to yes or no depending on whether or not "sar \-r"(memory data) output should be stored in the report output. This requires that USERESOURCES be set to yes. (default: no) .IP \fBUSEFULLSTATUS\fR .br @@ -154,17 +154,17 @@ Format to display MySQL process list, options are "table" or "vertical". This re .IP \fBOPTS_CURL\fR .br Options used by curl, when using USEFULLSTATUS -(default: '-Ls') +(default: '\-Ls') .IP \fBOPTS_DF\fR .br df options -(default: '-x nfs') +(default: '\-x nfs') .IP \fBOPTS_FDISK\fR .br Option used by USEFDISK. -(default: "-l") +(default: "\-l") .IP \fBOPTS_FREE\fR .br @@ -174,22 +174,22 @@ free options .IP \fBOPTS_IOSTAT\fR .br iostat options -(default: "-t -x 1 3" ) +(default: "\-t \-x 1 3" ) .IP \fBOPTS_IOTOP\fR .br iotop options -(default: "-b -o -t -n 3") +(default: "\-b \-o \-t \-n 3") .IP \fBOPTS_NETSTAT\fR .br netstat options -(default: "-ntulpae") +(default: "\-ntulpae") .IP \fBOPTS_NETSTAT_SUM\fR .br netstat statistics options -(default: "-s") +(default: "\-s") .IP \fBOPTS_PS\fR .br @@ -199,7 +199,7 @@ ps options .IP \fBOPTS_PSTREE\fR .br pstree options -(default: "-p") +(default: "\-p") .IP \fBOPTS_STATUSURL\fR .br @@ -209,7 +209,7 @@ URL to perform the http request when USEFULLSTATUS is enabled. .IP \fBOPTS_VMSTAT\fR .br vmstat options -(default: "-S M 1 3") +(default: "\-S M 1 3") .SH "REPORTING BUGS" Bugs and issues to be submitted via github diff --git a/src/recap.8 b/src/recap.8 index cf343d1..c5fe7b0 100644 --- a/src/recap.8 +++ b/src/recap.8 @@ -21,13 +21,13 @@ .\" .TH RECAP 8 "July 7, 2017" .SH NAME -recap \- dumps periodic information about running applications and resource usage +recap - dumps periodic information about running applications and resource usage .SH SYNOPSIS .BI "recap " [OPTION] .SH DESCRIPTION recap is a user-configurable script that can be run once, or run periodically out of cron to dump information about running processes and resource usage. It's useful on servers that have periodic, mysterious performance anomalies for tracking down what may be going on at the time of any particular incident. -The values for which reports are generated and how many reports are stored can be overriden in +The values for which reports are generated and how many reports are stored can be overridden in .IR /etc/recap "." The output files from the script are written to .IR BASEDIR "." diff --git a/src/recaplog.8 b/src/recaplog.8 index a605e88..78c27e1 100644 --- a/src/recaplog.8 +++ b/src/recaplog.8 @@ -23,23 +23,23 @@ .SH NAME .PP -recaplog \- Handles the logs generated by recap; compressing and/or deleting log files. +recaplog - Handles the logs generated by recap; compressing and/or deleting log files. .SH SYNOPSIS -.BR "recaptool " "[-n|-v|-h]" +.BR "recaptool " "[\-n|\-v|\-h]" .SH DESCRIPTION recaplog is a user-configurable script that runs periodically out of cron to compress recap log files older than one day, and delete log files older than a configurable amount of days, recaplog will not produce output if a tty is not found, this is useful when running from cron. .SH OPTIONS .TP -.BR "-h" +.BR "\-h" .BR "" "Print out the help." .TP -.BR "-n" +.BR "\-n" .BR "" "Performs a dry run, implies verbose." .TP -.BR "-v" +.BR "\-v" .BR "" "Prints to stdout." .SH SETTINGS @@ -56,9 +56,9 @@ These can be modified via the config file. .SH FILES .nf -/etc/recap \- The configuration file. -/etc/cront.d/recap \- The cronjob file. -/var/log/recap/recaplog.log \- The recaplog file. +/etc/recap - The configuration file. +/etc/cront.d/recap - The cronjob file. +/var/log/recap/recaplog.log - The recaplog file. .SH "REPORTING BUGS" Bugs and issues to be submitted via github diff --git a/src/recaptool.8 b/src/recaptool.8 index a60e68d..b3de4be 100644 --- a/src/recaptool.8 +++ b/src/recaptool.8 @@ -24,7 +24,7 @@ .SH NAME .PP -recaptool \- parses the logs and prints specific information about memory, +recaptool - parses the logs and prints specific information about memory, processes, network connections or queries to a mysql db. @@ -37,7 +37,7 @@ processes, network connections or queries to a mysql db. .BR "recaptool " "querycount" -.BR "recaptool " "-d" +.BR "recaptool " "\-d" .I PATH .SH DESCRIPTION @@ -72,7 +72,7 @@ a particular option in the logs. .RB "Shows the amount of " "mysql" " connections from the logs." .TP -.BI "-d " "PATH" +.BI "\-d " "PATH" .RB "Overrides the recap log " "PATH" ". Default uses BASEDIR" .I /var/log/recap/ .RB "Can be changed in config file." @@ -86,7 +86,7 @@ Show the memory and amount of processes running for httpd: .nf $ sudo recaptool memproc http Information: Using /var/log/recap as recap log path -Information: Executing memproc http +Information: Executing memproc http 2016-10-07_00:00:01 1101 3032.535 M 2016-10-07_00:10:01 1120 3132.832 M 2016-10-07_00:20:01 1128 3186.153 M @@ -97,7 +97,7 @@ Information: Executing memproc http .nf $ sudo recaptool netestab 443 Information: Using /var/log/recap as recap log path -Information: Executing netestab 443 +Information: Executing netestab 443 2016-10-07_00:00:01 302 2016-10-07_00:10:01 311 2016-10-07_00:20:01 312 @@ -108,7 +108,7 @@ Show the amount of query connections to the mysql db: .nf $ sudo recaptool querycount Information: Using /var/log/recap as recap log path -Information: Executing querycount +Information: Executing querycount 2016-10-07_00:00:01 124 2016-10-07_00:10:01 125 2016-10-07_00:20:01 128