change nagvis line object traffic unit to

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
u9913157
Posts: 3
Joined: Thu Feb 27, 2020 4:42 am

change nagvis line object traffic unit to

Post by u9913157 »

my line object display unit as B
how can I change to Mb or other :?:

https://imgur.com/VJc7bpr
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: change nagvis line object traffic unit to

Post 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)
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
u9913157
Posts: 3
Joined: Thu Feb 27, 2020 4:42 am

Re: change nagvis line object traffic unit to

Post by u9913157 »

my plugin is check_iftraffic64
version is .77
in Performance Data show bit
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: change nagvis line object traffic unit to

Post 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

Code: Select all

--units m
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
u9913157
Posts: 3
Joined: Thu Feb 27, 2020 4:42 am

Re: change nagvis line object traffic unit to

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: change nagvis line object traffic unit to

Post 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!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked