Page 1 of 1
change nagvis line object traffic unit to
Posted: Thu Feb 27, 2020 4:55 am
by u9913157
my line object display unit as B
how can I change to Mb or other
https://imgur.com/VJc7bpr
Re: change nagvis line object traffic unit to
Posted: Thu Feb 27, 2020 2:38 pm
by scottwilkerson
In Nagios XI, if you look at the Service Detail Page that the graph is pulling these values from, on the Advanced Tab what does it show for "Performance Data:" ?
The label on these will depend on what your plugin is showing as the UOM (Unit of Measure)
Re: change nagvis line object traffic unit to
Posted: Fri Feb 28, 2020 10:44 am
by u9913157
my plugin is check_iftraffic64
version is .77
in Performance Data show bit
Re: change nagvis line object traffic unit to
Posted: Fri Feb 28, 2020 10:55 am
by scottwilkerson
I'm not familiar with the plugin as it isn't provided with Nagios XI but I did look it up on the Exchange and based on the help for the plugin, it looks like you need to add the
--units flag to the check commands
Code: Select all
-u, --units STRING
g=gigabits/s,m=megabits/s,k=kilobits/s,b=bits/s. Required if -b, -I, -M,
or -O are used.
something like
Re: change nagvis line object traffic unit to
Posted: Sun Mar 01, 2020 9:08 pm
by u9913157
thank for you reply
I change the code
add line to 789
Code: Select all
$pin_ave = unit2scale($pin_ave);
$pout_ave = unit2scale($pout_ave);
that the data can scalable unit
Re: change nagvis line object traffic unit to
Posted: Mon Mar 02, 2020 8:06 am
by scottwilkerson
u9913157 wrote:thank for you reply
I change the code
add line to 789
Code: Select all
$pin_ave = unit2scale($pin_ave);
$pout_ave = unit2scale($pout_ave);
that the data can scalable unit
Thanks for sharing!