From: Jean Flach Date: Tue, 23 Jun 2015 11:37:13 +0000 (+0200) Subject: Remove thresholds from check_service.exe X-Git-Tag: v2.4.0~574 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b182cf869e124b4326b862cd242fc9a4b12d7202;p=icinga2 Remove thresholds from check_service.exe They didn't make any sense anyways fixes #9320 --- diff --git a/plugins/check_service.cpp b/plugins/check_service.cpp index 018f8b89f..973380f8e 100644 --- a/plugins/check_service.cpp +++ b/plugins/check_service.cpp @@ -134,7 +134,7 @@ INT printOutput(CONST printInfoStruct& printInfo) state state = OK; if (!printInfo.ServiceState) { - std::wcout << L"SERVICE CRITICAL NOTFOUND | service=" << printInfo.ServiceState << ";!4;!4;1;7" << '\n'; + std::wcout << L"SERVICE CRITICAL NOTFOUND | service=" << printInfo.ServiceState << ";;;1;7" << '\n'; return 3; } @@ -143,13 +143,13 @@ INT printOutput(CONST printInfoStruct& printInfo) switch (state) { case OK: - std::wcout << L"SERVICE OK RUNNING | service=4;!4;!4;1;7" << '\n'; + std::wcout << L"SERVICE OK RUNNING | service=4;;;1;7" << '\n'; break; case WARNING: - std::wcout << L"SERVICE WARNING NOT RUNNING | service=" << printInfo.ServiceState << ";!4;!4;1;7" << '\n'; + std::wcout << L"SERVICE WARNING NOT RUNNING | service=" << printInfo.ServiceState << ";;;1;7" << '\n'; break; case CRITICAL: - std::wcout << L"SERVICE CRITICAL NOT RUNNING | service=" << printInfo.ServiceState << ";!4;!4;1;7" << '\n'; + std::wcout << L"SERVICE CRITICAL NOT RUNNING | service=" << printInfo.ServiceState << ";;;1;7" << '\n'; break; }