[pkg-nagios-changes] [Git][nagios-team/pkg-nagvis][upstream] New upstream version 1.9.33
Bas Couwenberg (@sebastic)
gitlab at salsa.debian.org
Tue May 24 13:07:05 BST 2022
Bas Couwenberg pushed to branch upstream at Debian Nagios Maintainer Group / pkg-nagvis
Commits:
62313c68 by Bas Couwenberg at 2022-05-24T14:00:17+02:00
New upstream version 1.9.33
- - - - -
3 changed files:
- ChangeLog
- share/frontend/nagvis-js/js/ElementLine.js
- share/server/core/defines/global.php
Changes:
=====================================
ChangeLog
=====================================
@@ -1,3 +1,10 @@
+1.9.33
+Frontend:
+ * FIX: Weathermap lines of Checkmk monitored network interfaces displaying
+ network traffic in bytes instead of bits
+ * FIX: Weathermap lines of Checkmk use 1000 as base instead of 1024
+ (#315 Thanks to soeren-gugel)
+
1.9.32
Core:
* FIX: Fix PHP 8.1 incompatibility
=====================================
share/frontend/nagvis-js/js/ElementLine.js
=====================================
@@ -818,7 +818,7 @@ var ElementLine = Element.extend({
// Check_MK if/if64 checks support switching between bytes/bits.
var display_bits = false;
- if (output.match('In: [0-9].*[Bit|bit]/s.*Out: [0-9]+')) {
+ if (output.match('In: [0-9].*(Bit|bit)/s.*Out: [0-9]+')) {
display_bits=true;
}
@@ -861,10 +861,10 @@ var ElementLine = Element.extend({
/**
* Transform bits in a perfdata set to a human readable value
*/
- perfdataCalcBitsReadable: function(set) {
- var KB = 1024;
- var MB = 1024 * 1024;
- var GB = 1024 * 1024 * 1024;
+ perfdataCalcBitsReadable: function(set, kiloMultiplier=1000) {
+ var KB = kiloMultiplier;
+ var MB = kiloMultiplier * kiloMultiplier;
+ var GB = kiloMultiplier * kiloMultiplier * kiloMultiplier;
if(set[1] > GB) {
set[1] /= GB
set[2] = 'Gbit/s'
@@ -884,10 +884,10 @@ var ElementLine = Element.extend({
/**
* Transform bytes in a perfdata set to a human readable value
*/
- perfdataCalcBytesReadable: function(set) {
- var KB = 1024;
- var MB = 1024 * 1024;
- var GB = 1024 * 1024 * 1024;
+ perfdataCalcBytesReadable: function(set, kiloMultiplier=1000) {
+ var KB = kiloMultiplier;
+ var MB = kiloMultiplier * kiloMultiplier;
+ var GB = kiloMultiplier * kiloMultiplier * kiloMultiplier;
if(set[1] > GB) {
set[1] /= GB
set[2] = 'GB/s'
=====================================
share/server/core/defines/global.php
=====================================
@@ -23,7 +23,7 @@
*****************************************************************************/
// NagVis Version
-define('CONST_VERSION', '1.9.32');
+define('CONST_VERSION', '1.9.33');
// Set PHP error handling to standard level
// Different levels for php versions below 5.1 because PHP 5.1 reports
View it on GitLab: https://salsa.debian.org/nagios-team/pkg-nagvis/-/commit/62313c687e2016c61c541056958a9b6acf8c60ba
--
View it on GitLab: https://salsa.debian.org/nagios-team/pkg-nagvis/-/commit/62313c687e2016c61c541056958a9b6acf8c60ba
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-nagios-changes/attachments/20220524/7fa39fb7/attachment-0001.htm>
More information about the pkg-nagios-changes
mailing list