mirror of https://github.com/Icinga/icinga2.git
Remove thresholds from check_service.exe
They didn't make any sense anyways fixes #9320
This commit is contained in:
parent
0b1b222907
commit
2b3848eebc
|
@ -134,7 +134,7 @@ INT printOutput(CONST printInfoStruct& printInfo)
|
||||||
state state = OK;
|
state state = OK;
|
||||||
|
|
||||||
if (!printInfo.ServiceState) {
|
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;
|
return 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -143,13 +143,13 @@ INT printOutput(CONST printInfoStruct& printInfo)
|
||||||
|
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case OK:
|
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;
|
break;
|
||||||
case WARNING:
|
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;
|
break;
|
||||||
case CRITICAL:
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue