Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Cecylia Bocovich
gettor
Commits
59e215a7
Commit
59e215a7
authored
Sep 30, 2019
by
Hiro
🏄
Browse files
Update check script
parent
8a0ff9f4
Changes
1
Show whitespace changes
Inline
Side-by-side
scripts/check_service
View file @
59e215a7
...
@@ -120,13 +120,13 @@ if __name__ == "__main__":
...
@@ -120,13 +120,13 @@ if __name__ == "__main__":
message
=
repr
(
e
)
message
=
repr
(
e
)
finally
:
finally
:
if
status
==
OK
:
if
status
==
OK
:
status_file
.
write
(
"
0
\n
OK
: %s"
%
message
)
status_file
.
write
(
"
OK
\n
0
: %s"
%
message
)
elif
status
==
WARNING
:
elif
status
==
WARNING
:
status_file
.
write
(
"
1
\n
WARNING: %s"
%
message
)
status_file
.
write
(
"WARNING
\n
1
: %s"
%
message
)
elif
status
==
CRITICAL
:
elif
status
==
CRITICAL
:
status_file
.
write
(
"
2
\n
CRITICAL: %s"
%
message
)
status_file
.
write
(
"CRITICAL
\n
2
: %s"
%
message
)
else
:
else
:
status_file
.
write
(
"
3
\n
UNKNOWN: %s"
%
message
)
status_file
.
write
(
"UNKNOWN
\n
3
: %s"
%
message
)
status
=
UNKNOWN
status
=
UNKNOWN
sys
.
exit
(
status
)
sys
.
exit
(
status
)
Write
Preview
Supports
Markdown
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