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:
Michael Insel 2019-09-06 20:36:47 +02:00
parent 897b81d461
commit 1bd91b0998
1 changed files with 1 additions and 0 deletions

View File

@ -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;