Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
server-monitor
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Recolic
server-monitor
Commits
f78b7061
There was an error fetching the commit references. Please try again later.
Verified
Commit
f78b7061
authored
6 years ago
by
Recolic Keghart
Browse files
Options
Downloads
Patches
Plain Diff
tiny bug fix
parent
7903af8b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+2
-0
2 additions, 0 deletions
README.md
datafile.py.gen.d.py
+1
-1
1 addition, 1 deletion
datafile.py.gen.d.py
do.bash
+23
-20
23 additions, 20 deletions
do.bash
with
26 additions
and
21 deletions
README.md
+
2
−
0
View file @
f78b7061
# Recolic Server Status Monitor

## [Click HERE](https://recolic.net/status.html)
## Structure
...
...
This diff is collapsed.
Click to expand it.
datafile.py.gen.d.py
+
1
−
1
View file @
f78b7061
...
...
@@ -24,7 +24,7 @@ def on_broken(tag, desc):
curr_time
=
datetime
.
datetime
.
utcnow
()
msg
=
desc
+
'
service went down.
'
new_event
=
[
tag
,
curr_time
.
strftime
(
"
%a %d %b %Y %H:%M:%S %p UTC
"
),
msg
,
curr_time
.
strftime
(
"
%b
"
),
curr_time
.
strftime
(
"
%d
"
),
curr_time
.
strftime
(
"
%Y
"
)]
events
.
append
(
new_event
)
events
=
[
new_event
]
+
events
# latest event first!
def
save_status
():
#
...
...
This diff is collapsed.
Click to expand it.
do.bash
+
23
−
20
View file @
f78b7061
...
...
@@ -120,31 +120,34 @@ function do_test () {
curl
-s
'https://recolic.net/go/index.php'
--data
'target=https%3A%2F%2Fwww.google.com&name=google&super='
|
grep
Success
||
return
$?
;;
esac
}
function
do_test_twice
()
{
do_test
"
$1
"
||
do_test
"
$1
"
return
$?
}
if
[[
"
$1
"
=
all
]]
;
then
do_test rproxy
&&
do_test drive
&&
do_test ss-tw
&&
do_test ss-us1
&&
do_test ss-us5
&&
do_test ss-us6
&&
do_test ovpn-tw
&&
do_test www
&&
do_test mail
&&
do_test tm
&&
do_test git
&&
do_test zhixiang
&&
do_test mc
&&
do_test push-httpdb-agent
&&
do_test ddns-wuhan
&&
do_test ddns-us
&&
do_test shortlink
&&
do_test dl
do_test
_twice
rproxy
&&
do_test
_twice
drive
&&
do_test
_twice
ss-tw
&&
do_test
_twice
ss-us1
&&
do_test
_twice
ss-us5
&&
do_test
_twice
ss-us6
&&
do_test
_twice
ovpn-tw
&&
do_test
_twice
www
&&
do_test
_twice
mail
&&
do_test
_twice
tm
&&
do_test
_twice
git
&&
do_test
_twice
zhixiang
&&
do_test
_twice
mc
&&
do_test
_twice
push-httpdb-agent
&&
do_test
_twice
ddns-wuhan
&&
do_test
_twice
ddns-us
&&
do_test
_twice
shortlink
&&
do_test
_twice
dl
exit
$?
fi
do_test
"
$1
"
do_test
_twice
"
$1
"
exit
$?
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment