Page 1 of 1
graph in bytes, want it in megabytes
Posted: Tue Dec 13, 2016 10:52 am
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?
Re: graph in bytes, want it in megabytes
Posted: Tue Dec 13, 2016 12:05 pm
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.
Re: graph in bytes, want it in megabytes
Posted: Tue Dec 13, 2016 3:43 pm
by chrisbooth
Re: graph in bytes, want it in megabytes
Posted: Tue Dec 13, 2016 5:05 pm
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.
Re: graph in bytes, want it in megabytes
Posted: Wed Dec 14, 2016 8:10 am
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
Re: graph in bytes, want it in megabytes
Posted: Wed Dec 14, 2016 10:29 am
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