graph in bytes, want it in megabytes

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
chrisbooth
Posts: 43
Joined: Thu Dec 01, 2016 10:09 am

graph in bytes, want it in megabytes

Post by chrisbooth »

Code: Select all

root@localhost(/usr/local/nagios/libexec):./check_qlogic_sanbox_port -H 10.101.0.13 -C public -t speed -w 500 -c 900
OK - Port is up, Partner WWPN is 24010001555CDD38 | tx_speed_bytes=89299939804c;;;; rx_speed_bytes=9949999090c;;;;
i have this command which graphs like this
Screen Shot 2016-12-13 at 15.49.54.png
can i adjust this to MByte within NagiosXI or do i need to do something with the output of the check?
You do not have the required permissions to view the files attached to this post.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: graph in bytes, want it in megabytes

Post by dwhitfield »

What is check_qlogic_sanbox_port? I couldn't find anything referencing it online.

Also, can you PM me your Profile? You can download it by going to Admin > System Config > System Profile and click the Download Profile button towards the top. If for whatever reason you *cannot* download the profile, please put the output of Show Profile in the thread (that will at least get us some info).

After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.

UPDATE: Profile received and shared with techs.
chrisbooth
Posts: 43
Joined: Thu Dec 01, 2016 10:09 am

Re: graph in bytes, want it in megabytes

Post by chrisbooth »

Last edited by dwhitfield on Tue Dec 13, 2016 4:28 pm, edited 1 time in total.
Reason: removing profile for security purposes
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: graph in bytes, want it in megabytes

Post by dwhitfield »

I don't see any option in that plugin to change the units, but you might have a better luck contacting the developer of that plugin.

That means you'll have to modify things yourself. This post discusses modifying highcharts https://support.nagios.com/forum/viewto ... =6&t=30799 - begin with the post from 'lgroschen' and review the link to the highcharts page. This should be a good starting point, so let us know if you have any questions after checking it out - thanks.

It's entirely up to what the plugin outputs since the performance data is what builds those graphs...so you could modify things after on either end really.
chrisbooth
Posts: 43
Joined: Thu Dec 01, 2016 10:09 am

Re: graph in bytes, want it in megabytes

Post by chrisbooth »

unfortunately i dont have access to that forum thread.

i'm happy with the data coming in as bytes.
it's more the cosmetics of the graph i'd like to change

i dont want the Y axis to show 800000 instead show 8mbs for example
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: graph in bytes, want it in megabytes

Post by dwhitfield »

The plugin developers email is [email protected].

Alternatively, you could convert in your language of choice. I suspect JS (or at least client-side JS) is not the most performant way to do this, but it might be the easiest: https://stackoverflow.com/questions/159 ... javascript
Locked