mirror of
https://github.com/ThunixdotNet/monurbox.git
synced 2026-01-23 19:40:19 +00:00
added monitoring for gopher and gemini
This commit is contained in:
11
checks/gemini
Executable file
11
checks/gemini
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
export SITE=$1
|
||||
|
||||
# Attempt to connect to the Gemini server on port 1965
|
||||
timeout 2 bash -c "</dev/tcp/${SITE}/1965" &> /dev/null
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
11
checks/gopher
Executable file
11
checks/gopher
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
export SITE=$1
|
||||
|
||||
# Attempt to connect to the Gopher server on port 70
|
||||
timeout 2 bash -c "</dev/tcp/${SITE}/70" &> /dev/null
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
@@ -4,6 +4,8 @@ Minetest_Server
|
||||
Minecraft_Server
|
||||
web_site
|
||||
web_site_https
|
||||
gopher
|
||||
gemini
|
||||
imap
|
||||
smtp
|
||||
znc
|
||||
znc
|
||||
|
||||
Reference in New Issue
Block a user