summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-03-18 14:36:20 +0100
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-03-18 14:36:20 +0100
commit285db2a9fa25519cacd48a76347ae2dee0c06605 (patch)
treeb50509bba7ea12bdbf52a40feaa862b15f29c8c5
parent096afc90a79f462e6c705764451273a887fd8c0e (diff)
downloadmonitoring-plugins-285db2a9fa25519cacd48a76347ae2dee0c06605.tar.gz
Move disk specific stuff from lib to plugin specific directory
-rw-r--r--lib/Makefile.am3
-rw-r--r--plugins/Makefile.am2
-rw-r--r--plugins/check_disk.d/utils_disk.c (renamed from lib/utils_disk.c)0
-rw-r--r--plugins/check_disk.d/utils_disk.h (renamed from lib/utils_disk.h)0
4 files changed, 3 insertions, 2 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index e41201c4..a9f3ff40 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -7,10 +7,9 @@ noinst_LIBRARIES = libmonitoringplug.a
7AM_CPPFLAGS = -DNP_STATE_DIR_PREFIX=\"$(localstatedir)\" \ 7AM_CPPFLAGS = -DNP_STATE_DIR_PREFIX=\"$(localstatedir)\" \
8 -I$(srcdir) -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/plugins 8 -I$(srcdir) -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/plugins
9 9
10libmonitoringplug_a_SOURCES = utils_base.c utils_disk.c utils_tcp.c utils_cmd.c maxfd.c output.c perfdata.c output.c thresholds.c vendor/cJSON/cJSON.c 10libmonitoringplug_a_SOURCES = utils_base.c utils_tcp.c utils_cmd.c maxfd.c output.c perfdata.c output.c thresholds.c vendor/cJSON/cJSON.c
11 11
12EXTRA_DIST = utils_base.h \ 12EXTRA_DIST = utils_base.h \
13 utils_disk.h \
14 utils_tcp.h \ 13 utils_tcp.h \
15 utils_cmd.h \ 14 utils_cmd.h \
16 parse_ini.h \ 15 parse_ini.h \
diff --git a/plugins/Makefile.am b/plugins/Makefile.am
index e2bed4c3..30283cb4 100644
--- a/plugins/Makefile.am
+++ b/plugins/Makefile.am
@@ -55,6 +55,7 @@ EXTRA_DIST = t \
55 check_hpjd.d \ 55 check_hpjd.d \
56 check_game.d \ 56 check_game.d \
57 check_radius.d \ 57 check_radius.d \
58 check_disk.d \
58 check_time.d \ 59 check_time.d \
59 check_nagios.d \ 60 check_nagios.d \
60 check_dbi.d \ 61 check_dbi.d \
@@ -119,6 +120,7 @@ check_curl_LDADD = $(NETLIBS) $(LIBCURLLIBS) $(SSLOBJS) $(URIPARSERLIBS) picohtt
119check_dbi_LDADD = $(NETLIBS) $(DBILIBS) 120check_dbi_LDADD = $(NETLIBS) $(DBILIBS)
120check_dig_LDADD = $(NETLIBS) 121check_dig_LDADD = $(NETLIBS)
121check_disk_LDADD = $(BASEOBJS) 122check_disk_LDADD = $(BASEOBJS)
123check_disk_SOURCES = check_disk.c check_disk.d/utils_disk.c
122check_dns_LDADD = $(NETLIBS) 124check_dns_LDADD = $(NETLIBS)
123check_dummy_LDADD = $(BASEOBJS) 125check_dummy_LDADD = $(BASEOBJS)
124check_fping_LDADD = $(NETLIBS) 126check_fping_LDADD = $(NETLIBS)
diff --git a/lib/utils_disk.c b/plugins/check_disk.d/utils_disk.c
index 2b761f5e..2b761f5e 100644
--- a/lib/utils_disk.c
+++ b/plugins/check_disk.d/utils_disk.c
diff --git a/lib/utils_disk.h b/plugins/check_disk.d/utils_disk.h
index c5e81dc1..c5e81dc1 100644
--- a/lib/utils_disk.h
+++ b/plugins/check_disk.d/utils_disk.h