]> granicus.if.org Git - icinga2/commitdiff
Remove thresholds from check_service.exe
authorJean Flach <jean-marcel.flach@netways.de>
Tue, 23 Jun 2015 11:37:13 +0000 (13:37 +0200)
committerJean-Marcel Flach <jean-marcel.flach@netways.de>
Tue, 23 Jun 2015 13:39:48 +0000 (15:39 +0200)
They didn't make any sense anyways

fixes #9320

plugins/check_service.cpp

index 018f8b89f6a24a8ddfc16aebed4bdf235ccc3bd6..973380f8efc976631e354152a98c8287cefb4c6f 100644 (file)
@@ -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;
        }