summaryrefslogtreecommitdiffstats
path: root/plugins/check_mysql.c
AgeCommit message (Collapse)AuthorFilesLines
2024-08-28check_mysql: Label some booleans correctlyrefs/pull/2015/headLorenz Kästle1-4/+4
2024-08-28check_mysql: remove unused global variablesLorenz Kästle1-1/+1
2023-10-18check_mysql: Use C99 booleansRincewindsHat1-7/+7
2023-09-18Merge branch 'master' into mysql_detect_mysqldumprefs/pull/1718/headRincewindsHat1-2/+5
2023-09-18Initialize slaveresult to 0 and use strncat instead of bsd strlcatRincewindsHat1-2/+2
2023-09-18Add mysql_close to avoid spamming the server logsRincewindsHat1-0/+1
2023-05-30check_mysql: handle ER_ACCESS_DENIED_NO_PASSWORD_ERROR if ignore_auth=1refs/pull/1883/headPlaton Pronko1-1/+4
In some situations MySQL might return ER_ACCESS_DENIED_NO_PASSWORD_ERROR instead of ER_ACCESS_DENIED_ERROR. Semantically these errors are the same.
2023-04-28Typo in check_mysqlrefs/pull/1878/headLorenz Kästle1-1/+1
2021-10-31check_mysql.c: Detect running mysqldumpGerardo Malazdrewicz1-6/+26
When checking a slave, if the IO Thread or the SQL Thread are stopped, check for running mysqldump threads, return STATE_OK if there is any. Requires PROCESS privilege to work (else the mysqldump thread(s) would not be detected). Enlarged SLAVERESULTSIZE to fit "Mysqldump: in progress" at the end of the string. Got a NULL pointer in row[seconds_behind_field] instead of the "NULL" string when a mysqldump is running [mysql 5.7.34 + libmariadb3 10.3.31], so added a check for that.
2019-03-21check_mysql: Allow sockets to be specified to -Hrefs/pull/1587/headRobin Sonefors1-0/+3
The help text says that -H accepts a "unix socket (must be an absolute path)". Now that actually corresponds to reality. Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
2015-10-04use unknown exit code for help/version in pluginsSven Nierlein1-2/+2
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2014-07-28check_mysql: ignore authentication failureJan Wagner1-2/+20
This patch allows checking if MySQL server is running without providing valid username and password. Similar to check_ssh plugin it returns MySQL server version string and protocol number. Example: check_mysql -n -H aaa.bbb.ccc.ddd MySQL OK - Version: 5.0.51a-24+lenny5 (protocol 10) This is useful for monitoring servers where one does not have administrator privileges or does not want to grant any privileges for the monitoring station. To enable this functionality new option --ignore-auth (-n) is added to check_mysql plugin. Thanks to Julius Kriukas Closes #1020 Closes #1178
2014-04-03Fix check_mysql.c client options from fileawiddersheim1-6/+0
If you don't specify a group or a file to read data from the plugin tries to read from several files that don't exist and no groups.
2014-01-20Capitalize "Monitoring" when it's the first wordHolger Weiss1-1/+1
2014-01-19Project rename initial commit.Monitoring Plugins Development Team1-3/+3
This is an initial take at renaming the project to Monitoring Plugins. It's not expected to be fully complete, and it is expected to break things (The perl module for instance). More testing will be required before this goes mainline.
2013-08-18check_mysql: Don't accept new positional argumentsHolger Weiss1-4/+0
Do not also accept the new -f/--file and -g/--group options as positional arguments (especially not prior to "db_pass" and "db", as that would break backward compatibility).
2013-08-18check_mysql: Use xasprintf instead of asprintfHolger Weiss1-1/+1
2013-08-18check_mysql: Fix copy'n'pasted commentsHolger Weiss1-2/+2
2013-08-18Merge branch 'master' of https://github.com/jonmilby/nagios-pluginsHolger Weiss1-4/+34
* 'master' of https://github.com/jonmilby/nagios-plugins: Updated check_mysql.c to take client options file and group parameters Conflicts: plugins/check_mysql.c
2013-08-18check_mysql: Connections should have been defined as a counterTim Laszlo1-3/+3
2013-08-18Counter increments were incorrect; remove the leading space from perfdataTim Laszlo1-4/+7
2013-08-18check_mysql: add perfromance metrics for all checksTim Laszlo1-10/+61
2013-08-18check_mysql: when checking slave thread add performance data for seconds ↵Tim Laszlo1-3/+17
behind master
2013-08-17check_mysql: Cosmetic changes to SSL supportHolger Weiss1-23/+23
Use (slightly) more intuitive option names etc.
2013-08-17Added ssl support to check_myslqJuan Carlos Fernandez1-2/+48
2013-01-24Apply my patch from:refs/pull/34/headDaniël van Eeden1-3/+8
http://sourceforge.net/tracker/index.php?func=detail&aid=3269273&group_id=29880&atid=397597
2012-12-28Updated check_mysql.c to take client options file and group parametersrefs/pull/32/headJonathan Milby1-4/+35
2012-06-29Die when asprintf failsAnders Kaseorg1-1/+1
Fixes many instances of warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2010-04-22Add newline after "Usage:" in --helpThomas Guyot-Sionnest1-1/+1
2010-04-22Standardize the extra-opts notesThomas Guyot-Sionnest1-4/+0
2010-04-14Fix translations when extra-opts aren't enabledThomas Guyot-Sionnest1-5/+5
Bug #2832884 reported problem with translations outputting pot file headers. This is caused by "" matching the header of the translation files. This patch moves gettext macros inside utils macros and update some french translations.
2009-05-20Fix check_mysql* not using password set in my.cnf (#2531905 - Ben Timby)Thomas Guyot-Sionnest1-4/+4
2009-03-24check_mysql: Fix segfault with old slaves (#2696823 - Oskar Ahner)Thomas Guyot-Sionnest1-1/+2
2009-02-20Typo fixes (Jan Wagner - SF 1878971)Ton Voon1-1/+1
2008-11-23Removing CVS/SVN tags and replacing with git-based versioningThomas Guyot-Sionnest1-6/+2
For contrib/, full tags have been imported from subversion git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2091 f882894a-f735-0410-b71e-b25c423dba1c
2008-11-19Bulk EOL cleanupThomas Guyot-Sionnest1-3/+3
$ git diff --ignore-space-change|diffstat 0 files changed git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2087 f882894a-f735-0410-b71e-b25c423dba1c
2008-08-16Fix assignment written as a comparison in validate_arguments() when db_pass ↵Thomas Guyot-Sionnest1-1/+1
is NULL (Patch from http://blog.barfoo.org/projects/rpms-for-sles10) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2034 f882894a-f735-0410-b71e-b25c423dba1c
2008-05-07Added support for --extra-opts in all C plugins (disabled by default, see ↵Thomas Guyot-Sionnest1-0/+10
configure --help) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1991 f882894a-f735-0410-b71e-b25c423dba1c
2008-04-30Add socket support to check_mysql*Thomas Guyot-Sionnest1-15/+32
Also clears the password from check_mysql command-line options git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1988 f882894a-f735-0410-b71e-b25c423dba1c
2008-04-27--help output cleanup (plus removal of spaces on blank lines)Thomas Guyot-Sionnest1-2/+4
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1984 f882894a-f735-0410-b71e-b25c423dba1c
2008-01-30Bump plugins/ to GPLv3 (check_apt to check_nwstat)Thomas Guyot-Sionnest1-24/+21
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1916 f882894a-f735-0410-b71e-b25c423dba1c
2007-12-10Plenty of french translations (and a few fixes BTW)Thomas Guyot-Sionnest1-1/+1
- No more fuzzy french translations - Only (!) 355 strings to translate git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1859 f882894a-f735-0410-b71e-b25c423dba1c
2007-03-29Fix argument processing (Felix Frank - 1690697)Holger Weiss1-5/+5
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1655 f882894a-f735-0410-b71e-b25c423dba1c
2007-01-28Don't try to print `optarg' (which will be a NULL pointer) if an unknownHolger Weiss1-1/+1
command line option was used, as this leads to a segfault on some systems. The unknown option will be printed by getopt(3) anyway. So, simply call print_usage() and exit UNKNOWN via the new usage5() instead. git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1590 f882894a-f735-0410-b71e-b25c423dba1c
2006-10-19first pass at cleaning localization for new releaseBenoit Mortier1-6/+28
first pass at making all the headre be the same licence, plugin, etc... git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1499 f882894a-f735-0410-b71e-b25c423dba1c
2006-07-13Move new util_* functions to lib/Ton Voon1-0/+1
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1451 f882894a-f735-0410-b71e-b25c423dba1c
2006-06-15cleaning help and usageBenoit Mortier1-23/+21
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1432 f882894a-f735-0410-b71e-b25c423dba1c
2006-03-17mysql detection cleanup: fixes runtime linking, autodetection of mainTon Voon1-2/+2
locations, detection of lib64 and different layouts git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1327 f882894a-f735-0410-b71e-b25c423dba1c
2006-03-15Alert on amount of time a slave is behind (Steven Kreuzer)Ton Voon1-19/+62
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1324 f882894a-f735-0410-b71e-b25c423dba1c
2005-12-15Display errors with slave queries correctly. Added extra tests for slavesTon Voon1-3/+13
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1299 f882894a-f735-0410-b71e-b25c423dba1c