summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Eble <psychotrahe@users.sourceforge.net>2007-06-18 20:20:56 (GMT)
committerMatthias Eble <psychotrahe@users.sourceforge.net>2007-06-18 20:20:56 (GMT)
commit1aa01940861cae855a9b7cd2c7ccdebc116b309a (patch)
tree489e337e333b10fb52dc25fb112dc1a727f5953d
parent79b221828648c97f09136cafb89b0479f60f9d38 (diff)
downloadmonitoring-plugins-1aa01940861cae855a9b7cd2c7ccdebc116b309a.tar.gz
Make Linux specific plugin check_ide_smart build if appropriate headers are found
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1744 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r--REQUIREMENTS3
-rw-r--r--configure.in13
-rw-r--r--plugins/.cvsignore1
3 files changed, 17 insertions, 0 deletions
diff --git a/REQUIREMENTS b/REQUIREMENTS
index ebc495b..67cb8bf 100644
--- a/REQUIREMENTS
+++ b/REQUIREMENTS
@@ -67,6 +67,9 @@ check_ups:
67 - Requires Network UPS Tools (>= 1.4) to run on the server to monitor 67 - Requires Network UPS Tools (>= 1.4) to run on the server to monitor
68 http://www.networkupstools.org/ 68 http://www.networkupstools.org/
69 69
70check_ide_smart:
71 - Uses the Linux specific SMART interface [http://smartlinux.sourceforge.net/smart/index.php].
72
70OS Specific Issues 73OS Specific Issues
71------------------ 74------------------
72 75
diff --git a/configure.in b/configure.in
index 7ce8a92..5b5b983 100644
--- a/configure.in
+++ b/configure.in
@@ -240,6 +240,19 @@ else
240fi 240fi
241LIBS="$_SAVEDLIBS" 241LIBS="$_SAVEDLIBS"
242 242
243dnl Check for headers used by check_ide_smart
244AC_CHECK_HEADER(linux/hdreg.h, FOUNDINCLUDE=yes, FOUNDINCLUDE=no)
245if test "$FOUNDINCLUDE" = "yes" ; then
246 AC_CHECK_HEADER(linux/types.h, FOUNDINCLUDE=yes, FOUNDINCLUDE=no)
247fi
248
249if test "$FOUNDINCLUDE" = "yes" ; then
250 EXTRAS="$EXTRAS check_ide_smart"
251else
252 AC_MSG_WARN([Skipping check_ide_smart plugin.])
253 AC_MSG_WARN([check_ide_smart is linux specific. It requires linux/hdreg.h and linux/types.h.])
254fi
255
243dnl Check for mysql libraries 256dnl Check for mysql libraries
244np_mysqlclient 257np_mysqlclient
245if test $with_mysql = "no" ; then 258if test $with_mysql = "no" ; then
diff --git a/plugins/.cvsignore b/plugins/.cvsignore
index e3db508..52dc94f 100644
--- a/plugins/.cvsignore
+++ b/plugins/.cvsignore
@@ -6,6 +6,7 @@ check_dummy
6check_ftp 6check_ftp
7check_fping 7check_fping
8check_http 8check_http
9check_ide_smart
9check_imap 10check_imap
10check_jabber 11check_jabber
11check_load 12check_load