/usr/share/check_mk/checks-man/mysql.connections is in check-mk-server 1.2.6p12-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | title: MySQL Database: Maximum connection usage since startup
agents: linux
catalog: app/mysql
license: GPL
distribution: check_mk
description:
This check allows the tracking of connection usage for a MySQL database.
Therefore it queries the maximum number of connections that have been
in use simultaneously since the server started and
the maximum number of possible parallel connections.
From these both it calculates the
maximum usage level of these connections in percent
and matches the specified {WARN} and {CRIT} thresholds against it.
This check needs the agent plugin {mk_mysql} to be installed.
Further details about this plugin and monitoring of MySQL can be
found in the Check_MK online documentation in the article
"Monitoring MySQL with Check_MK".
inventory:
On each host where the agent plugin {mk_mysql} is being installed
and the MySQL daemon is running one service is being generated.
[parameters]
parameters (dict): A dictionary with currentl just one possible key: {"perc_used"}. This
is a pair if two floating point numbers:
{warn} (float): The maximum connection usage (in percent) that triggers
a {WARN} state.
{crit} (float): The maximum connection usage (in percent) that triggers
a {CRIT} state.
If {perc_used} is not set, the check always returns {OK} state.
|