summaryrefslogtreecommitdiffstats
path: root/plugins/check_dbi.c
diff options
context:
space:
mode:
authorSebastian Harl <sh@teamix.net>2011-04-18 13:47:26 +0200
committerSebastian Harl <sh@teamix.net>2012-06-06 14:10:55 +0200
commit022ba7ea3abbc56f70c3310ae85278c5b8da40ac (patch)
treec9070b23927b50eac3b5b6c2b1c688b719b973ef /plugins/check_dbi.c
parent14fc0f741dcd8316d7052d38ceb0a6968b7d999f (diff)
downloadmonitoring-plugins-022ba7ea3abbc56f70c3310ae85278c5b8da40ac.tar.gz
check_dbi: Added simple regex example to help output.
Diffstat (limited to 'plugins/check_dbi.c')
-rw-r--r--plugins/check_dbi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/check_dbi.c b/plugins/check_dbi.c
index 1edc2e44..03ec9ce5 100644
--- a/plugins/check_dbi.c
+++ b/plugins/check_dbi.c
@@ -595,6 +595,12 @@ print_help (void)
595 printf (" Warning if connecting to the database takes more than half of a second;\n"); 595 printf (" Warning if connecting to the database takes more than half of a second;\n");
596 printf (" critical if it takes more than 2 seconds.\n\n"); 596 printf (" critical if it takes more than 2 seconds.\n\n");
597 597
598 printf (" check_dbi -d mysql -H localhost -o username=user \\\n");
599 printf (" -q 'SELECT concat(@@version, \" \", @@version_comment)' \\\n");
600 printf (" -r '^5\\.[01].*MySQL Enterprise Server'\n");
601 printf (" Critical if the database server is not a MySQL enterprise server in either\n");
602 printf (" version 5.0.x or 5.1.x.\n\n");
603
598 printf (" check_dbi -d pgsql -u username=user -m SERVER_VERSION \\\n"); 604 printf (" check_dbi -d pgsql -u username=user -m SERVER_VERSION \\\n");
599 printf (" -w 090000:090099 -c 090000:090199\n"); 605 printf (" -w 090000:090099 -c 090000:090199\n");
600 printf (" Warn if the PostgreSQL server version is not 9.0.x; critical if the version\n"); 606 printf (" Warn if the PostgreSQL server version is not 9.0.x; critical if the version\n");