bundles/sshmon: import from work repository
This commit is contained in:
parent
eaf268aea9
commit
c7362df6c4
12 changed files with 773 additions and 0 deletions
13
bundles/sshmon/files/check_http_url_for_string
Normal file
13
bundles/sshmon/files/check_http_url_for_string
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
url=$1
|
||||
string=$2
|
||||
|
||||
if curl -m 30 -sLk "$url" | grep -F "$string" > /dev/null
|
||||
then
|
||||
echo OK
|
||||
exit 0
|
||||
else
|
||||
echo "CRITICAL - String '$string' not found in '$url'"
|
||||
exit 2
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue