summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMarc Sánchez <sanchezfauste@gmail.com>2017-09-07 22:25:09 +0200
committerMarc Sánchez <sanchezfauste@gmail.com>2017-09-07 22:25:09 +0200
commitc03e1ad081bc080cb8085bc14a94e4965a8e119e (patch)
tree23770f58a0b8b55604367a923ab081e259246472 /configure.ac
parent015a40e1b590bb847328d51bdfc4b544ae8825d3 (diff)
downloadmonitoring-plugins-c03e1ad081bc080cb8085bc14a94e4965a8e119e.tar.gz
Only turn on ordering procs by CPU usage if PS_USES_PROCPCPU
Disable sorting of procs by CPU usage on check_load if procpcpu is not present on PS_VARLIST
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index bf129956..08a0e782 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1016,6 +1016,10 @@ if test -n "$ac_cv_ps_varlist" ; then
1016 AC_DEFINE(PS_USES_PROCETIME,"yes", 1016 AC_DEFINE(PS_USES_PROCETIME,"yes",
1017 [Whether the ps utility uses the "procetime" field]) 1017 [Whether the ps utility uses the "procetime" field])
1018 fi 1018 fi
1019 if echo "$ac_cv_ps_varlist" | grep "procpcpu" >/dev/null; then
1020 AC_DEFINE(PS_USES_PROCPCPU,"yes",
1021 [Whether the ps utility uses the "procpcpu" field])
1022 fi
1019fi 1023fi
1020 1024
1021AC_PATH_PROG(PATH_TO_PING,ping) 1025AC_PATH_PROG(PATH_TO_PING,ping)