mirror of https://github.com/Icinga/icinga2.git
Add summarized performance data to check_network
This adds two new performance data values to check_network, 'network_in' and 'network_out'. On systems with multiple network interfaces the 'network_in' value holds the summarized input bytes and the 'network_out' value holds the summarized output bytes.
This commit is contained in:
parent
897b81d461
commit
1bd91b0998
|
@ -193,6 +193,7 @@ static int printOutput(printInfoStruct& printInfo, const std::vector<nInterface>
|
|||
|
||||
std::wcout << " " << tIn + tOut << L"B/s | "
|
||||
<< L"'network'=" << tIn + tOut << L"B;" << printInfo.warn.pString() << L";" << printInfo.crit.pString() << L";" << L"0; "
|
||||
<< L"'network_in'=" << tIn << L"B 'network_out'=" << tOut << L"B "
|
||||
<< tss.str() << '\n';
|
||||
|
||||
return state;
|
||||
|
|
Loading…
Reference in New Issue