check_mysqld (Visit this link)

rating from 0 votes
Replacement for check_mysql that allows to set thresholds for any variables in SHOW STATUS or for similar SQL queries. Data is also made available for graphing or other use (graphing templates enclosed)
This MYSQL check plugin does "SHOW STATUS" commmand on mysql server and can issue alerts if selected variables are above/below given number(s). It also returns all variables as perfomance data for further nagios 2.0 post-processing.

The variables you can use include but are not limited to:
* Threads_running
* Threads_connected
* Threads_cached
* Open_tables
* Open_files
* Innodb_row_lock_current_waits
* Qcache_free_memory
* Qcache_total_blocks
* Delayed_errors
* Delayed_writes
* Key_blocks_not_flushed
* Slave_running
* Slow_launch_threads
* Slow_queries
You can check more then one (as many as needed) variables at same time. Full list of variables you can use is at: [http://dev.mysql.com/doc/refman/5.0/en/server-status-variables.htm]

Version 0.8 has been posted in December 2007 that fixes previous limitations and allows to fully specify both upper and lower thresholds in nagios plugin specification compatible way. Additional enhancements are:
1. When you have Mysql 5.0.2 or above the plugin will issue 'SHOW GLOBAL STATUS' instead of 'SHOW STATUS'
2. Instead of plugin doing 'SHOW STATUS' you can now specify custom SQL query (some other SHOW command or SELECT with two columns of data in the output) and set conditions and attribute checks using data.
3.Version 09 now supports nagios plugin specification for specifying threshold (start:end and @start:end) in addition to my custom format (>,<,=,!).

Graphing template has also now been posted. Here is what first page looks like (there are 11 pages in larger template): [http:/william.leibzon.org/nagios/mysql_1hours.png]

========================== SETUP NOTES ==============================

1. Make sure to check and if necessary adjust the the path to utils.pm
2. Make sure to install perl DBI and mysql DBD modules

It is recommended you use arguments to pass on all options to this plugin, but if necessary you can change default MySQL hostname, port, user, password variables at the start of the script code

Sample command and service definitions:

define command{
command_name check_mysqld
command_line $USER1$/check_mysqld.pl -H $HOSTADDRESS$ -u $ARG1$ -p $ARG2$
}

define service {
use service-critical
hostgroup_name mysql
service_description MYSQLD
check_command check_mysqld!foo!apples
}

Examples of command-line use:

/usr/lib/nagios/plugins/check_mysqld.pl -p foo -f -u nagios -a uptime,threads_connected,questions,slow_queries,open_tables -A threads_running,innodb_row_lock_time_avg -w \",,,,\" -c \",,,,>25\" -H nagios -v

Submitted by: willix
Hits: 1955
Overall downloads: 571
Added: 2007-04-29 00:00:00
Last Modified: 2009-12-15 11:45:23

Filename Preview Size Description DL
check_mysqld.txt Preview 0 kb check_mysqld (url location to download file) 1429
check_mysqld.pl Preview 27 kb chec_mysqld.pl (version 0.902 - Jan 08, 2008) 2403
check_mysqld.ncfg 80 kb Full nagiosgrapher template with 11 pages, requires nagios 3.0 or nagios2 compiled with larger performance buffers. 782
check_mysqld_queries.ncfg 25 kb Smaller nagiosgrapher template for first 2 pages only 501

Comments


Leave a reply

If you just want to rate the project leave the other field empty.
Even though it would be nice if you would drop a line.

Allowed tags: blockquote, strong, a, b, i, u, code

Captcha Reload Image


  • check_mysql

    rating from 0 votes
    Check connection an check show status values. Some plugins for checking predefined values and one generic for checking the values given on the commandline.
  • check_mysql_perf

    rating from 0 votes
    Plugin written in C which allows to monitor various performance-related characteristics of a MySQL database.
  • check_mysql_stats

    rating5 from 2 votes
    Plugin that checks for various performance stats from MySQL
  • check_mysql_health

    rating from 0 votes
    check_mysql_health is a plugin for Nagios that allows you to monitor a MySQL database. Among the list of metrics are time to login, index usage, bufferpool hit rate, query cache hit rate, slow queries, temp tables on disk, table cache hit rate, connected threads, and many more. Requirements are either a DBD::mysql Perl module or a MySQL client package.
  • check_mysql_status

    rating from 0 votes
    Checks the variables from SHOW STATUS; command in MySQL
  • check_mysql_connections

    rating from 0 votes
    Checks the number of connections to a mysql server.
  • check mysql lagtime

    rating from 0 votes
    greps lag time from mysql for slave replication, written in a shell script, so its easily portable.
  • MySQL Replication

    rating from 0 votes
    check_replication.pl - Check if a MySQL slave is running (IO thread), plus check the master and server to see their current replication BINLOG positions.
  • Check Mysql status

    rating from 0 votes
    Retrieves mysql informations with 'SHOW STATUS' command. Possibility to get values by check (Req/sec)
  • check_mysql_count

    rating from 0 votes
    Check row count in table. Possible to specify WHERE conditionals.
Catalot 1.3.0 (appkit/v0.9.0-dev, Agavi/1.0.0) | www.netways.de | Legal
© 2009 NETWAYS GmbH. The Program is provided AS IS, without warranty. Licensed under GPLv3.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3.