Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
monitoring
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
cylab
monitoring
Commits
b8e4a55a
Commit
b8e4a55a
authored
1 year ago
by
Tibo
Browse files
Options
Downloads
Patches
Plain Diff
cleanup server.show code
parent
5a33c2e3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
resources/assets/sass/app.scss
+5
-0
5 additions, 0 deletions
resources/assets/sass/app.scss
resources/views/server/partials/client-install.blade.php
+4
-4
4 additions, 4 deletions
resources/views/server/partials/client-install.blade.php
with
9 additions
and
4 deletions
resources/assets/sass/app.scss
+
5
−
0
View file @
b8e4a55a
...
...
@@ -43,4 +43,9 @@ nav.navbar {
position
:
absolute
;
bottom
:
0
;
right
:
5px
}
pre
code
{
font-size
:
87
.5%
;
overflow
:
hidden
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
resources/views/server/partials/client-install.blade.php
+
4
−
4
View file @
b8e4a55a
...
...
@@ -4,19 +4,19 @@
</div>
<div
class=
"card-body"
>
<p>
Download client application:
</p>
<pre
style=
"font-size: 75%; overflow: hidden"
><code>
wget {{ \App\Jobs\FetchClientManifest::url() }}
<pre><code>
wget {{ \App\Jobs\FetchClientManifest::url() }}
unzip monitor-*.zip
</code></pre>
<p>
Move it to /usr/bin:
</p>
<pre
style=
"font-size: 75%; overflow: hidden"
><code>
sudo mv monitor /usr/bin/monitor
<pre><code>
sudo mv monitor /usr/bin/monitor
</code></pre>
<p>
Test it:
</p>
<pre
style=
"font-size: 75%; overflow: hidden"
><code>
sudo monitor ping -i {{ $server->id }} -t {{ $server->token }} -s {{ config("app.url") }}
<pre><code>
sudo monitor ping -i {{ $server->id }} -t {{ $server->token }} -s {{ config("app.url") }}
</code></pre>
<p>
Add a cron entry to run it automatically:
</p>
<pre
style=
"font-size: 75%; overflow: hidden"
><code>
echo "*/5 * * * * root /usr/bin/monitor ping -i {{ $server->id }} -t {{ $server->token }} -s {{ config("app.url") }}" | \
<pre><code>
echo "*/5 * * * * root /usr/bin/monitor ping -i {{ $server->id }} -t {{ $server->token }} -s {{ config("app.url") }}" | \
sudo tee -a /etc/crontab
</code></pre>
</div>
...
...
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