[Nagiosplug-checkins] nagiosplug configure.in, 1.214, 1.215 NEWS, 1.23, 1.24

Ton Voon tonvoon at users.sourceforge.net
Thu Apr 26 00:10:12 CEST 2007


Update of /cvsroot/nagiosplug/nagiosplug
In directory sc8-pr-cvs16:/tmp/cvs-serv31443

Modified Files:
	configure.in NEWS 
Log Message:
check_load can optionally divide by number of cpus


Index: NEWS
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/NEWS,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- NEWS	19 Apr 2007 03:46:14 -0000	1.23
+++ NEWS	25 Apr 2007 22:10:07 -0000	1.24
@@ -5,6 +5,7 @@
 	New/improved -E/--skip-stderr and -S/--skip-stdout options for check_by_ssh
 	check_snmp now support Counter64
 	Fix compilation of check_ldap, check_radius and check_pgsql
+	check_load can optionally divide by number of cpus
 
 1.4.8 11th April 2007
 	Respects --without-world-permissions for setuid plugins

Index: configure.in
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/configure.in,v
retrieving revision 1.214
retrieving revision 1.215
diff -u -d -r1.214 -r1.215
--- configure.in	19 Apr 2007 03:46:13 -0000	1.214
+++ configure.in	25 Apr 2007 22:10:05 -0000	1.215
@@ -1054,6 +1054,14 @@
 	AC_DEFINE_UNQUOTED(NSLOOKUP_COMMAND,"$ac_cv_nslookup_command", [path and args for nslookup])
 fi
 
+AC_MSG_CHECKING([for number of cpus])
+AC_TRY_COMPILE([#include <unistd.h>],
+	[sysconf(_SC_NPROCESSORS_CONF) > 0;],
+	AC_DEFINE(HAVE_SYSCONF__SC_NPROCESSORS_CONF,1,[Define if sysconf returns number of cpus])
+	AC_MSG_RESULT([sysconf(_SC_NPROCESSORS_CONF)]),
+	AC_MSG_RESULT([cannot calculate])
+	)
+
 AC_PATH_PROG(PATH_TO_UPTIME,uptime)
 AC_ARG_WITH(uptime_command,
             ACX_HELP_STRING([--with-uptime-command=PATH],





More information about the Commits mailing list