Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F53865464
exitcode.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
578 B
Referenced Files
None
Subscribers
None
exitcode.py
View Options
# -------------------------------------------------------------
# Platform checks - exit codes
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Description: Exit codes for Nagios / NRPE
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
OK
=
0
WARNING
=
1
CRITICAL
=
2
UNKNOWN
=
3
def
ok_or_critical
(
is_successful
):
return
OK
if
is_successful
else
CRITICAL
def
ok_or_warning
(
is_successful
):
return
OK
if
is_successful
else
WARNING
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Wed, Oct 14, 20:56 (1 d, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4180524
Default Alt Text
exitcode.py (578 B)
Attached To
Mode
rCHECKS Nasqueron platform checks
Attached
Detach File
Event Timeline
Log In to Comment