From: Michael Insel Date: Fri, 6 Sep 2019 18:36:47 +0000 (+0200) Subject: Add summarized performance data to check_network X-Git-Tag: v2.11.0~1^2~13^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1bd91b0998fa7fcec37a2ac0c3511eea5fc3d675;p=icinga2 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. --- diff --git a/plugins/check_network.cpp b/plugins/check_network.cpp index 1cf0f2fa5..e21607a09 100644 --- a/plugins/check_network.cpp +++ b/plugins/check_network.cpp @@ -193,6 +193,7 @@ static int printOutput(printInfoStruct& printInfo, const std::vector 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;