Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
nagios_plugins [2015/10/08 10:20] steve |
nagios_plugins [2015/10/08 10:25] steve |
||
---|---|---|---|
Line 38: | Line 38: | ||
* **-C <command>** - only check for exact match of command, without path | * **-C <command>** - only check for exact match of command, without path | ||
- | ** Check that SSHD is running, with at least one process ** | + | ** OpenSSH ** |
SSHD will have one proc for the master daemon, and one for each user login as well. So setting a minimal range of 1 will check if it is running at all: | SSHD will have one proc for the master daemon, and one for each user login as well. So setting a minimal range of 1 will check if it is running at all: | ||
<code> | <code> | ||
- | check_procs -c 1: -u root -C sshd | + | check_procs -c 1: -u root -a /usr/sbin/sshd |
</code> | </code> | ||