mirror of
https://github.com/ThunixdotNet/monurbox.git
synced 2026-11-06 18:45:38 +00:00
Added basic monitoring
This commit is contained in:
1 parent
ddbe0ba4ee
commit
4f769e8f4c
6 files changed
+25
-2
No files matched your search
File renamed without changes.
Executable
+10
@@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
export SITE=$1
|
||||||
|
|
||||||
|
timeout 2 bash -c "</dev/tcp/${SITE}/143" > /dev/null
|
||||||
|
if [ $? -ne "0" ]
|
||||||
|
then
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
Executable
+10
@@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
export SITE=$1
|
||||||
|
|
||||||
|
timeout 2 bash -c "</dev/tcp/${SITE}/25" > /dev/null
|
||||||
|
if [ $? -ne "0" ]
|
||||||
|
then
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
@@ -1,2 +1,3 @@
|
|||||||
sshd
|
sshd
|
||||||
BZFlag_server
|
BZFlag_Server
|
||||||
|
Memory
|
||||||
@@ -1,2 +1,4 @@
|
|||||||
web_site
|
web_site
|
||||||
web_site_https
|
web_site_https
|
||||||
|
imap
|
||||||
|
smtp
|
||||||
Reference in new issue
Block a user