[Nagiosplug-devel] check_ide_smart [Fwd: nagiosplug configure.in, 1.218, 1.219 REQUIREMENTS, 1.13, 1.14]

Matthias Eble matthias.eble at mailing.kaufland-informationssysteme.com
Tue Jun 19 09:23:36 CEST 2007


Hi all,

I made some changes to configure.in to get check_ide_smart to work again 
(see #1094326). I'd be really glad if somebody could review if checking 
the headers for availability is sufficient.

Am I right, that the check_ide_smart needs root privileges?
If yes, it needs to be moved to plugins-root (after another review?).

Additionally #1094326 claims there is an issue with sata disks. Can 
somebody verify this?

Matthias

-------- Original-Nachricht --------
Betreff: [Nagiosplug-checkins] nagiosplug configure.in, 1.218,	1.219 
REQUIREMENTS, 1.13, 1.14
Datum: Mon, 18 Jun 2007 20:20:59 +0000
Von: Matthias Eble <psychotrahe at users.sourceforge.net>
Antwort an: nagiosplug-devel at lists.sourceforge.net
An: nagiosplug-checkins at lists.sourceforge.net

Update of /cvsroot/nagiosplug/nagiosplug
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv25431

Modified Files:
	configure.in REQUIREMENTS
Log Message:
Make Linux specific plugin check_ide_smart build if appropriate headers 
are found


Index: REQUIREMENTS
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/REQUIREMENTS,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- REQUIREMENTS	23 Jan 2007 18:20:49 -0000	1.13
+++ REQUIREMENTS	18 Jun 2007 20:20:55 -0000	1.14
@@ -67,6 +67,9 @@
  	- Requires Network UPS Tools (>= 1.4) to run on the server to monitor
  	  http://www.networkupstools.org/

+check_ide_smart:
+	- Uses the Linux specific SMART interface 
[http://smartlinux.sourceforge.net/smart/index.php].
+
  OS Specific Issues
  ------------------


Index: configure.in
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/configure.in,v
retrieving revision 1.218
retrieving revision 1.219
diff -u -d -r1.218 -r1.219
--- configure.in	4 Jun 2007 08:58:13 -0000	1.218
+++ configure.in	18 Jun 2007 20:20:55 -0000	1.219
@@ -240,6 +240,19 @@
  fi
  LIBS="$_SAVEDLIBS"

+dnl Check for headers used by check_ide_smart
+AC_CHECK_HEADER(linux/hdreg.h, FOUNDINCLUDE=yes, FOUNDINCLUDE=no)
+if test "$FOUNDINCLUDE" = "yes" ; then
+	AC_CHECK_HEADER(linux/types.h, FOUNDINCLUDE=yes, FOUNDINCLUDE=no)
+fi
+
+if test "$FOUNDINCLUDE" = "yes" ; then
+	EXTRAS="$EXTRAS check_ide_smart"
+else
+	AC_MSG_WARN([Skipping check_ide_smart plugin.])
+	AC_MSG_WARN([check_ide_smart is linux specific. It requires 
linux/hdreg.h and linux/types.h.])
+fi
+
  dnl Check for mysql libraries
  np_mysqlclient
  if test $with_mysql = "no" ; then


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Nagiosplug-checkins mailing list
Nagiosplug-checkins at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagiosplug-checkins




More information about the Devel mailing list