[monitoring-plugins] improve command examples for 'at least' processes
ChrisWi
git at monitoring-plugins.org
Thu Mar 21 17:50:16 CET 2019
Module: monitoring-plugins
Branch: master
Commit: a58ea5ec5d5fecce9224d10b7058ac63050db05a
Author: ChrisWi <chris at computersalat.de>
Date: Thu Mar 21 14:18:37 2019 +0100
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=a58ea5e
improve command examples for 'at least' processes
---
plugins/check_procs.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/plugins/check_procs.c b/plugins/check_procs.c
index 4bcc56b..f7917c3 100644
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
@@ -764,6 +764,11 @@ be the total number of running processes\n\n"));
printf (" %s\n", "check_procs -w 2:2 -c 2:1024 -C portsentry");
printf (" %s\n", _("Warning if not two processes with command name portsentry."));
printf (" %s\n\n", _("Critical if < 2 or > 1024 processes"));
+ printf (" %s\n", "check_procs -c 1: -C sshd");
+ printf (" %s\n", _("Critical if not at least 1 process with command sshd"));
+ printf (" %s\n", "check_procs -w 1024 -c 1: -C sshd");
+ printf (" %s\n", _("Warning if > 1024 processes with command name sshd."));
+ printf (" %s\n\n", _("Critical if < 1 processes with command name sshd."));
printf (" %s\n", "check_procs -w 10 -a '/usr/local/bin/perl' -u root");
printf (" %s\n", _("Warning alert if > 10 processes with command arguments containing"));
printf (" %s\n\n", _("'/usr/local/bin/perl' and owned by root"));
More information about the Commits
mailing list