Add aggregates on multi_bits_separate graphs #956

Merged
merged 4 commits into from May 10, 2015

Projects

None yet

2 participants

@mmarchand
Contributor

Adds an aggregate legend with the total of all ports specified
Add nodetails option to lighten the legend when adding lots of ports on one graph
Small fix for nototal which was not working anymore

I am just not sure about padding of texts ... it works here though (adding some pics as examples of all options combinations)

I agree to the conditions of the Contributor Agreement contained in doc/General/Contributing.md

graph.php?height=140&width=520&legend=yes&id=357,358,359&type=multiport_bits_separate&from=-8h&nodetails=1&nototal=1
nodetailnototal
graph.php?height=140&width=520&legend=yes&id=357,358,359&type=multiport_bits_separate&from=-8h&nodetails=1
nodetails
graph.php?height=140&width=520&legend=yes&id=357,358,359&type=multiport_bits_separate&from=-8h&nototal=1
nototal
graph.php?height=140&width=520&legend=yes&id=357,358,359&type=multiport_bits_separate&from=-8h
withdetails

@mmarchand mmarchand fixed nototal option which was not properly set in common.inc.php
add new nodetails option to not display each device/port on the legend when graphing lots of devices
add new aggregates on multibits graphs
a43165e
@f0o f0o self-assigned this May 10, 2015
@f0o
Member
f0o commented May 10, 2015

Hi @mmarchand,

Thanks for contributing, I'm just to review your PR and do a quick function test before merge.

Meanwhile, can you please sign the Contributor's Agreement?
See #953 as reference on how to sign it :)

@mmarchand
Contributor

ha just understood it needs a commit, will do, thanks :)

@f0o
Member
f0o commented May 10, 2015

A small question.

When adding &nodetails=1 and &nototal=1 it still shows the aggregates. I think it would make sense adding a &noagg=1 (or therelike) to follow it's lead :)

Apart from that 👍

@mmarchand
Contributor

yes , it makes sense, adding the noagg option :)

@f0o
Member
f0o commented May 10, 2015

Thanks!

@f0o
Member
f0o commented May 10, 2015

A last tiny thing. After adding nodetails,nototal and noagg it still shows the Header of the fields, can you strip those?
See: https://librenms.devilcode.org/graph.php?height=140&width=520&legend=yes&id=75,76&type=multiport_bits_separate&from=-8h&nototal=1&nodetails=1&noagg=1

@mmarchand
Contributor

sure, looking into it :)

@f0o
Member
f0o commented May 10, 2015

Good job :)
Merging

//Edit: just need to wait for scrut to finish

@f0o f0o merged commit e4490f1 into librenms:master May 10, 2015

1 check passed

Scrutinizer No new issues
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment