mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 06:34:42 +02:00
parent
ed4feac422
commit
88f004a356
@ -204,17 +204,17 @@ INT printOutput(printInfoStruct& printInfo, std::vector<drive>& vDrives)
|
|||||||
wsPerf.push_back(L" " + it->name + L"=" + removeZero(it->free) + unit + L";" +
|
wsPerf.push_back(L" " + it->name + L"=" + removeZero(it->free) + unit + L";" +
|
||||||
printInfo.warn.pString(it->cap) + L";" + printInfo.crit.pString(it->cap) + L";0;"
|
printInfo.warn.pString(it->cap) + L";" + printInfo.crit.pString(it->cap) + L";0;"
|
||||||
+ removeZero(it->cap));
|
+ removeZero(it->cap));
|
||||||
|
if (printInfo.crit.rend(it->free, it->cap))
|
||||||
|
state = CRITICAL;
|
||||||
|
if (state == OK && printInfo.warn.rend(it->free, it->cap))
|
||||||
|
state = WARNING;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (printInfo.warn.rend(tFree, tCap)) {
|
if (state == WARNING)
|
||||||
state = WARNING;
|
|
||||||
output = L"DISK WARNING - free space:";
|
output = L"DISK WARNING - free space:";
|
||||||
}
|
|
||||||
|
|
||||||
if (printInfo.crit.rend(tFree, tCap)) {
|
if (state == CRITICAL)
|
||||||
state = CRITICAL;
|
|
||||||
output = L"DISK CRITICAL - free space:";
|
output = L"DISK CRITICAL - free space:";
|
||||||
}
|
|
||||||
|
|
||||||
std::wcout << output;
|
std::wcout << output;
|
||||||
if (vDrives.size() > 1)
|
if (vDrives.size() > 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user