summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWolfgang Karall-Ahlborn <office@karall-edv.at>2021-01-03 11:27:44 +0100
committerWolfgang Karall-Ahlborn <office@karall-edv.at>2021-01-03 11:27:44 +0100
commit8eaccee190734a12763a51aaa8a46f324f6742ec (patch)
treeb8aaa30338ef39da6fa353ef0b4d7fc256588c53 /plugins
parent180e069169840c11196e9e2028c44493525f1918 (diff)
downloadmonitoring-plugins-8eaccee190734a12763a51aaa8a46f324f6742ec.tar.gz
check_procs -- exchange needle and haystack in strstr() for proper state match
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_procs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_procs.c b/plugins/check_procs.c
index f7917c34..0de6be93 100644
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
@@ -265,7 +265,7 @@ main (int argc, char **argv)
265 } 265 }
266 } 266 }
267 267
268 if ((options & STAT) && (strstr (statopts, procstat))) 268 if ((options & STAT) && (strstr (procstat, statopts)))
269 resultsum |= STAT; 269 resultsum |= STAT;
270 if ((options & ARGS) && procargs && (strstr (procargs, args) != NULL)) 270 if ((options & ARGS) && procargs && (strstr (procargs, args) != NULL))
271 resultsum |= ARGS; 271 resultsum |= ARGS;