Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
status-page
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
namibsun
python
status-page
Commits
8c04042d
Commit
8c04042d
authored
6 years ago
by
Hermann Krumrey
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' into 'master'
Develop See merge request namibsun/python/status-page!3
parents
189359fb
e3dcba45
Branches
master
Tags
0.1.1
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+1
-0
1 addition, 0 deletions
.gitlab-ci.yml
CHANGELOG
+2
-0
2 additions, 0 deletions
CHANGELOG
status_page/analytics/ping.py
+2
-2
2 additions, 2 deletions
status_page/analytics/ping.py
version
+1
-1
1 addition, 1 deletion
version
with
6 additions
and
3 deletions
.gitlab-ci.yml
+
1
−
0
View file @
8c04042d
...
...
@@ -31,6 +31,7 @@ deploy_production:
tags
:
-
python3
-
status-page
-
nmap
script
:
-
python3 -m venv virtual && source virtual/bin/activate && pip install ci-scripts
-
deploy-flask $STATUS_PAGE_HOME
...
...
This diff is collapsed.
Click to expand it.
CHANGELOG
+
2
−
0
View file @
8c04042d
0.1.1:
- Fixed some nmap-related issues
0.1.0:
- Implement first bit of analytics functionality
0.0.1:
...
...
This diff is collapsed.
Click to expand it.
status_page/analytics/ping.py
+
2
−
2
View file @
8c04042d
...
...
@@ -42,7 +42,7 @@ def port_ping(address: str, port: int) -> bool:
:return: Whether or not the device responds to the ping
"""
try
:
response
=
check_output
([
"
nmap
"
,
"
-p
"
,
str
(
port
),
address
])
return
"
open
"
in
response
.
decode
(
"
utf-8
"
)
response
=
check_output
([
"
nmap
"
,
"
-p
"
,
str
(
port
),
address
,
"
-Pn
"
])
return
"
Host is up
"
in
response
.
decode
(
"
utf-8
"
)
except
CalledProcessError
:
return
False
This diff is collapsed.
Click to expand it.
version
+
1
−
1
View file @
8c04042d
0.1.0
\ No newline at end of file
0.1.1
\ No newline at end of file
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