MCPcopy Create free account
hub / github.com/Icinga/icinga2 / ExitStatusToState

Method ExitStatusToState

lib/icinga/pluginutility.cpp:86–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86ServiceState PluginUtility::ExitStatusToState(int exitStatus)
87{
88 switch (exitStatus) {
89 case 0:
90 return ServiceOK;
91 case 1:
92 return ServiceWarning;
93 case 2:
94 return ServiceCritical;
95 default:
96 return ServiceUnknown;
97 }
98}
99
100std::pair<String, String> PluginUtility::ParseCheckOutput(const String& output)
101{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected