Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
saxid-federated-resource-management
frms
Commits
2118db1a
Commit
2118db1a
authored
Jul 17, 2020
by
Daniel Schreiber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Monitoring Scripte
parent
6797d401
Pipeline
#34848
passed with stage
in 32 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
monitoring/check_mk.sh
monitoring/check_mk.sh
+10
-0
monitoring/xymon.sh
monitoring/xymon.sh
+10
-0
No files found.
monitoring/check_mk.sh
0 → 100644
View file @
2118db1a
#!/bin/bash
.
/var/www/django/frms/env/bin/activate
/var/www/django/frms/app/manage.py check_health
-v2
>
/dev/null 2>&1
if
[
$?
-eq
0
]
then
echo
"0 saxidapi dummy=0;0;0;0; OK - SaxID API Status"
else
echo
"2 saxidapi dummy=0;0;0;0; CRIT - SaxID API Status"
fi
monitoring/xymon.sh
0 → 100755
View file @
2118db1a
#!/bin/bash
OUT
=
$(
/var/www/django/frms/env/bin/python /var/www/django/frms/app/manage.py check_health
-v3
)
RC
=
$?
echo
"
$OUT
"
if
[[
$RC
-gt
0
]]
;
then
echo
"&red Check fehlgeschlagen"
exit
$RED
fi
exit
$GREEN
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment