From 2ac3716261e797712c59fb329cd5c82023325b9d Mon Sep 17 00:00:00 2001 From: root Date: Tue, 3 Dec 2024 19:48:57 -0700 Subject: [PATCH] added monitoring for gopher and gemini --- checks/gemini | 11 +++++++++++ checks/gopher | 11 +++++++++++ hosts/thunix.net | 4 +++- 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100755 checks/gemini create mode 100755 checks/gopher diff --git a/checks/gemini b/checks/gemini new file mode 100755 index 0000000..9bf6c7c --- /dev/null +++ b/checks/gemini @@ -0,0 +1,11 @@ +#!/bin/bash +export SITE=$1 + +# Attempt to connect to the Gemini server on port 1965 +timeout 2 bash -c " /dev/null + +if [ $? -ne 0 ]; then + exit 1 +else + exit 0 +fi diff --git a/checks/gopher b/checks/gopher new file mode 100755 index 0000000..4f37203 --- /dev/null +++ b/checks/gopher @@ -0,0 +1,11 @@ +#!/bin/bash +export SITE=$1 + +# Attempt to connect to the Gopher server on port 70 +timeout 2 bash -c " /dev/null + +if [ $? -ne 0 ]; then + exit 1 +else + exit 0 +fi diff --git a/hosts/thunix.net b/hosts/thunix.net index bfae324..9c76605 100644 --- a/hosts/thunix.net +++ b/hosts/thunix.net @@ -4,6 +4,8 @@ Minetest_Server Minecraft_Server web_site web_site_https +gopher +gemini imap smtp -znc \ No newline at end of file +znc