summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2005-01-13 18:24:52 (GMT)
committerTon Voon <tonvoon@users.sourceforge.net>2005-01-13 18:24:52 (GMT)
commitd866b45fdd8c41c7ff22f3aca35ce4b41f8e16a2 (patch)
treee19c214c58a75e37949d1b2bf873f761a39eeabf /configure.in
parent96c9d82e4c488cddca0d0f8cb71cd21f0b87e509 (diff)
downloadmonitoring-plugins-d866b45fdd8c41c7ff22f3aca35ce4b41f8e16a2.tar.gz
Use floats for holding memory values to avoid different types on different
OSes. Seems to have a problem with the perf data for check_swap on Sol 2.6, but not critical git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1080 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/configure.in b/configure.in
index 64f06bf..030b1de 100644
--- a/configure.in
+++ b/configure.in
@@ -1257,13 +1257,13 @@ then
1257 egrep -i "^lswap +path +pri +swaplo +blocks +free +maxswap" \ 1257 egrep -i "^lswap +path +pri +swaplo +blocks +free +maxswap" \
1258 >/dev/null] 1258 >/dev/null]
1259 then 1259 then
1260 ac_cv_swap_format=[" %*d %*s %*d,%*d %*d %*d %d %d"] 1260 ac_cv_swap_format=[" %*d %*s %*d,%*d %*d %*d %f %f"]
1261 ac_cv_swap_conv=2048 1261 ac_cv_swap_conv=2048
1262 AC_MSG_RESULT([using IRIX format swap]) 1262 AC_MSG_RESULT([using IRIX format swap])
1263 1263
1264 elif [$PATH_TO_SWAP -l 2>/dev/null | egrep -i "^path +dev +swaplo +blocks +free" >/dev/null] 1264 elif [$PATH_TO_SWAP -l 2>/dev/null | egrep -i "^path +dev +swaplo +blocks +free" >/dev/null]
1265 then 1265 then
1266 ac_cv_swap_format=["%*s %*[0-9,-] %*d %d %d"] 1266 ac_cv_swap_format=["%*s %*[0-9,-] %*d %f %f"]
1267 ac_cv_swap_conv=2048 1267 ac_cv_swap_conv=2048
1268 AC_MSG_RESULT([using Unixware format swap]) 1268 AC_MSG_RESULT([using Unixware format swap])
1269 else 1269 else
@@ -1287,7 +1287,7 @@ then
1287 1287
1288 if [$PATH_TO_SWAPINFO -k 2>/dev/null | egrep -i "^Device +1K-blocks +Used +Avail" >/dev/null] 1288 if [$PATH_TO_SWAPINFO -k 2>/dev/null | egrep -i "^Device +1K-blocks +Used +Avail" >/dev/null]
1289 then 1289 then
1290 ac_cv_swap_format=["%*s %d %*d %d"] 1290 ac_cv_swap_format=["%*s %f %*d %f"]
1291 ac_cv_swap_conv=1024 1291 ac_cv_swap_conv=1024
1292 AC_MSG_RESULT([using FreeBSD format swapinfo]) 1292 AC_MSG_RESULT([using FreeBSD format swapinfo])
1293 fi 1293 fi
@@ -1296,7 +1296,7 @@ elif [$PATH_TO_SWAPINFO -dfM 2>/dev/null | egrep -i "^TYPE +AVAIL +USED +FREE" >
1296then 1296then
1297 ac_cv_have_swap=yes 1297 ac_cv_have_swap=yes
1298 ac_cv_swap_command="$PATH_TO_SWAPINFO -dfM", 1298 ac_cv_swap_command="$PATH_TO_SWAPINFO -dfM",
1299 ac_cv_swap_format=["%*s %d %*d %d"] 1299 ac_cv_swap_format=["%*s %f %*d %f"]
1300 ac_cv_swap_conv=1024 1300 ac_cv_swap_conv=1024
1301 AC_MSG_RESULT([using HP-UX format swapinfo]) 1301 AC_MSG_RESULT([using HP-UX format swapinfo])
1302fi 1302fi
@@ -1311,7 +1311,7 @@ if [$PATH_TO_LSPS -a 2>/dev/null | egrep -i "^Page Space" > /dev/null]
1311then 1311then
1312 ac_cv_have_swap=yes 1312 ac_cv_have_swap=yes
1313 ac_cv_swap_command="$PATH_TO_LSPS -a" 1313 ac_cv_swap_command="$PATH_TO_LSPS -a"
1314 ac_cv_swap_format=["%*s %*s %*s %d%*s %d %*s"] 1314 ac_cv_swap_format=["%*s %*s %*s %f%*s %f %*s"]
1315 ac_cv_swap_conv=1 1315 ac_cv_swap_conv=1
1316 AC_MSG_RESULT([using AIX lsps]) 1316 AC_MSG_RESULT([using AIX lsps])
1317fi 1317fi