Debian Codegraph @

check_mysql_health/check_mysql_health-2.2.2/README

raw
1 check_mysql_health Nagios Plugin README
2 ---------------------
3
4 This plugin is used to monitor a variety of mysql database metrics.
5
6 * For instructions on installing this plugin for use with Nagios,
7 see below. In addition, generic instructions for the GNU toolchain
8 can be found in the INSTALL file.
9
10 * For major changes between releases, read the CHANGES file.
11
12 * For information on detailed changes that have been made,
13 read the Changelog file.
14
15 * This plugin is self documenting. All plugins that comply with
16 the basic guidelines for development will provide detailed help when
17 invoked with the '-h' or '--help' options.
18
19 You can check for the latest plugin at:
20 http://www.consol.com/opensource/nagios/check-mysql-health
21
22 The documentation in this README covers only the most common features.
23 To view the full documentation and examples, go to
24 http://www.consol.com/opensource/nagios/check-mysql-health or
25 http://www.consol.de/opensource/nagios/check-mysql-health
26
27 Send mail to [email protected] for assistance.
28 Please include the OS type/version and the Perl DBI/DBD version
29 that you are using.
30 Also, run the plugin with the '-vvv' option and provide the resulting
31 version information. Of course, there may be additional diagnostic information
32 required as well. Use good judgment.
33
34 For patch submissions and bug reports, please send me a mail. You can also find
35 me at http://www.nagios-portal.de
36
37
38
39
40 How to "compile" the check_mysql_health script.
41 --------------------------------------------------------
42
43 1) Run the configure script to initialize variables and create a Makefile, etc.
44
45 ./configure --prefix=BASEDIRECTORY --with-nagios-user=SOMEUSER --with-nagios-group=SOMEGROUP --with-perl=PATH_TO_PERL --with-statefiles-dir=STATE_PATH
46
47 a) Replace BASEDIRECTORY with the path of the directory under which Nagios
48 is installed (default is '/usr/local/nagios')
49 b) Replace SOMEUSER with the name of a user on your system that will be
50 assigned permissions to the installed plugins (default is 'nagios')
51 c) Replace SOMEGRP with the name of a group on your system that will be
52 assigned permissions to the installed plugins (default is 'nagios')
53 d) Replace PATH_TO_PERL with the path where a perl binary can be found.
54 Besides the system wide perl you might have installed a private perl
55 just for the nagios plugins (default is the perl in your path).
56 e) Replace STATE_PATH with the directory where you want the script to
57 write state files which transport information from one run to the next.
58 (default is /tmp)
59
60 Simply running ./configure will be sufficient to create a check_mysql_health
61 script which you can customize later.
62
63
64 2) "Compile" the plugin with the following command:
65
66 make
67
68 This will produce a "check_mysql_health" script. You will also find
69 a "check_mysql_health.pl" which you better ignore. It is the base for
70 the compilation filled with placeholders. These will be replaced during
71 the make process.
72
73
74 3) Install the compiled plugin script with the following command:
75
76 make install
77
78 The installation procedure will attempt to place the plugin in a
79 'libexec/' subdirectory in the base directory you specified with
80 the --prefix argument to the configure script.
81
82
83 4) Verify that your configuration files for Nagios contains
84 the correct paths to the new plugin.
85
86
87 Command line parameters
88 -----------------------
89
90 --hostname=<the mysql connect string>
91 This is what you would also use with tnsping and sqlplus.
92
93 --username=<username>
94 This is the user which reads the system tables.
95
96 --password=<secret>
97 This is the user's password.
98
99 --mode=<operation mode>
100 This parameter tells the plugin what it should check.
101 The list of known modes may grow frequently. Please look at
102 http://www.consol.com/opensource/nagios/check-mysql-health for a list
103 of features.
104
105 --replication-user=<username of replication user>
106 This is the username used to authenticated mysql replication, this is useful
107 with the longprocs mode where the replication users process is not counted as
108 a longrunning process.
109
110 --warning=<warning threshold>
111 If the metric is out of this range, the plugin returns a warning.
112
113 --critical=<critical threshold>
114 If the metric is out of this range, the plugin returns a critical.
115
116
117
118 How to prepare the database for monitoring
119 --------------------------------------
120
121 GRANT USAGE ON *.* TO 'nagios'@'nagiosserver' IDENTIFIED BY 'nagiospassword';
122
123 --------------------------------------
124
125 That's it. If you have any problems or questions, feel free to send mail
126 to [email protected]
127
128 Please do not send me a mail like this:
129
130 +-------------------------------------------------+
131 | I need monitor of database urgent. Please help. |
132 | Suresh |
133 +-------------------------------------------------+
134
135 I will answer you:
136
137 +-------------------------------------------------+
138 | A drumm Schelln konnst hom |
139 | Gerhard |
140 +-------------------------------------------------+