Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F56339737
exitcode.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
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-script.python
Expires
Sat, Nov 7, 05:06 (1 d, 14 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4249349
Default Alt Text
exitcode.py (578 B)
Attached To
Mode
rCHECKS Nasqueron platform checks
Attached
Detach File
Event Timeline
Log In to Comment