bundles/sshmon: import from work repository
This commit is contained in:
parent
eaf268aea9
commit
c7362df6c4
12 changed files with 773 additions and 0 deletions
10
bundles/sshmon/files/check_systemd_unit
Normal file
10
bundles/sshmon/files/check_systemd_unit
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
if ! systemctl --quiet is-active "$1"
|
||||
then
|
||||
echo "CRITICAL - systemd unit $1 not active"
|
||||
exit 2
|
||||
else
|
||||
echo OK
|
||||
exit 0
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue