aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_procs.c
diff options
context:
space:
mode:
authorGravatar Wolfgang Karall-Ahlborn <office@karall-edv.at> 2021-01-03 11:27:44 +0100
committerGravatar Wolfgang Karall-Ahlborn <office@karall-edv.at> 2021-01-03 11:27:44 +0100
commit8eaccee190734a12763a51aaa8a46f324f6742ec (patch)
treeb8aaa30338ef39da6fa353ef0b4d7fc256588c53 /plugins/check_procs.c
parent180e069169840c11196e9e2028c44493525f1918 (diff)
downloadmonitoring-plugins-8eaccee190734a12763a51aaa8a46f324f6742ec.tar.gz
check_procs -- exchange needle and haystack in strstr() for proper state match
Diffstat (limited to 'plugins/check_procs.c')
-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)
}
}
- if ((options & STAT) && (strstr (statopts, procstat)))
+ if ((options & STAT) && (strstr (procstat, statopts)))
resultsum |= STAT;
if ((options & ARGS) && procargs && (strstr (procargs, args) != NULL))
resultsum |= ARGS;