diff options
author | Sebastian Harl <sh@teamix.net> | 2011-04-07 17:24:23 +0200 |
---|---|---|
committer | Sebastian Harl <sh@teamix.net> | 2012-06-06 14:10:55 +0200 |
commit | f9a942d2a11e70ee68d5ea2c9aa762bff004bf43 (patch) | |
tree | 31ce3a05d1bdc715bf7a0230280d1d16940212ad /plugins/Makefile.am | |
parent | 804e7d878cad5c76474fd2abf2130ff446dbda5d (diff) | |
download | monitoring-plugins-f9a942d2a11e70ee68d5ea2c9aa762bff004bf43.tar.gz |
Initial version of the 'check_dbi' plugin.
This plugin connects to an SQL database using libdbi, thus supporting all
database backends supported by libdbi. It will then issue the specified SQL
query and check the result (the numeric value of the first column of the first
row to be precise) against the specified warning/critical ranges.
The performance data includes the connection time (µs-resolution as provided
by gettimeofday()) and the query result.
Diffstat (limited to 'plugins/Makefile.am')
-rw-r--r-- | plugins/Makefile.am | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Makefile.am b/plugins/Makefile.am index 36a28b0b..4781e0fc 100644 --- a/plugins/Makefile.am +++ b/plugins/Makefile.am | |||
@@ -37,7 +37,7 @@ check_tcp_programs = check_ftp check_imap check_nntp check_pop \ | |||
37 | EXTRA_PROGRAMS = check_mysql check_radius check_pgsql check_snmp check_hpjd \ | 37 | EXTRA_PROGRAMS = check_mysql check_radius check_pgsql check_snmp check_hpjd \ |
38 | check_swap check_fping check_ldap check_game check_dig \ | 38 | check_swap check_fping check_ldap check_game check_dig \ |
39 | check_nagios check_by_ssh check_dns check_nt check_ide_smart \ | 39 | check_nagios check_by_ssh check_dns check_nt check_ide_smart \ |
40 | check_procs check_mysql_query check_apt | 40 | check_procs check_mysql_query check_apt check_dbi |
41 | 41 | ||
42 | EXTRA_DIST = t tests utils.c netutils.c sslutils.c popen.c utils.h netutils.h \ | 42 | EXTRA_DIST = t tests utils.c netutils.c sslutils.c popen.c utils.h netutils.h \ |
43 | popen.h common.h runcmd.c runcmd.h | 43 | popen.h common.h runcmd.c runcmd.h |
@@ -64,6 +64,7 @@ test-debug: | |||
64 | 64 | ||
65 | check_apt_LDADD = $(BASEOBJS) runcmd.o | 65 | check_apt_LDADD = $(BASEOBJS) runcmd.o |
66 | check_cluster_LDADD = $(BASEOBJS) | 66 | check_cluster_LDADD = $(BASEOBJS) |
67 | check_dbi_LDADD = $(NETLIBS) $(DBILIBS) | ||
67 | check_dig_LDADD = $(NETLIBS) runcmd.o | 68 | check_dig_LDADD = $(NETLIBS) runcmd.o |
68 | check_disk_LDADD = $(BASEOBJS) popen.o | 69 | check_disk_LDADD = $(BASEOBJS) popen.o |
69 | check_dns_LDADD = $(NETLIBS) runcmd.o | 70 | check_dns_LDADD = $(NETLIBS) runcmd.o |
@@ -109,6 +110,7 @@ urlize_LDADD = $(BASEOBJS) popen.o | |||
109 | 110 | ||
110 | check_apt_DEPENDENCIES = check_apt.c $(BASEOBJS) runcmd.o $(DEPLIBS) | 111 | check_apt_DEPENDENCIES = check_apt.c $(BASEOBJS) runcmd.o $(DEPLIBS) |
111 | check_cluster_DEPENDENCIES = check_cluster.c $(BASEOBJS) $(DEPLIBS) | 112 | check_cluster_DEPENDENCIES = check_cluster.c $(BASEOBJS) $(DEPLIBS) |
113 | check_dbi_DEPENDENCIES = check_dbi.c $(NETOBJS) $(DEPLIBS) | ||
112 | check_dig_DEPENDENCIES = check_dig.c $(NETOBJS) runcmd.o $(DEPLIBS) | 114 | check_dig_DEPENDENCIES = check_dig.c $(NETOBJS) runcmd.o $(DEPLIBS) |
113 | check_disk_DEPENDENCIES = check_disk.c $(BASEOBJS) popen.o $(DEPLIBS) | 115 | check_disk_DEPENDENCIES = check_disk.c $(BASEOBJS) popen.o $(DEPLIBS) |
114 | check_dns_DEPENDENCIES = check_dns.c $(NETOBJS) runcmd.o $(DEPLIBS) | 116 | check_dns_DEPENDENCIES = check_dns.c $(NETOBJS) runcmd.o $(DEPLIBS) |