| 84 | } |
| 85 | |
| 86 | ServiceState 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 | |
| 100 | std::pair<String, String> PluginUtility::ParseCheckOutput(const String& output) |
| 101 | { |
nothing calls this directly
no outgoing calls
no test coverage detected