]> granicus.if.org Git - icinga2/commitdiff
Fix incorrect state in check_ping
authorJean Flach <jean-marcel.flach@icinga.com>
Thu, 4 May 2017 07:38:08 +0000 (09:38 +0200)
committerJean Flach <jean-marcel.flach@icinga.com>
Thu, 4 May 2017 07:39:46 +0000 (09:39 +0200)
fixes #5223

plugins/check_ping.cpp

index 98fb7f4f389bf077e71b533711b9ea7259de4540..481253eb6b1a22087c5dda6b8fe657c6b49304d2 100644 (file)
@@ -236,7 +236,7 @@ INT printOutput(printInfoStruct& printInfo, response& response)
 
        if (response.dropped == printInfo.num) {
                std::wcout << L"PING CRITICAL ALL CONNECTIONS DROPPED | " << perf.str() << '\n';
-               return 3;
+               return 2;
        }
 
        switch (state) {