![](https://secure.gravatar.com/avatar/48bfe696ac1cbf068a4de2b752e281c6.jpg?s=120&d=mm&r=g)
r1942 release bring feature called ignore ports, but it looks like it doesn't work for me. When I selecting ports for ignore in settings and pressing save, it show this message "Device record unchanged. No update necessary." So what I'm doing wrong?
![](https://secure.gravatar.com/avatar/1c685a39a957c5e4dd2544f4cdc48c02.jpg?s=120&d=mm&r=g)
On 22/03/11 18:09, Nikolay Shopik wrote:
r1942 release bring feature called ignore ports, but it looks like it doesn't work for me. When I selecting ports for ignore in settings and pressing save, it show this message "Device record unchanged. No update necessary." So what I'm doing wrong?
It was broken by r1947 and should be fixed by r1950.
![](https://secure.gravatar.com/avatar/1c685a39a957c5e4dd2544f4cdc48c02.jpg?s=120&d=mm&r=g)
On 22/03/11 19:05, Nikolay Shopik wrote:
On 22/03/11 11:23, Paul Gear wrote:
It was broken by r1947 and should be fixed by r1950.
Thanks, it could be great to have invert selection or select all. When you having 500 ports on device and only need to monitor few one, it is real helper :).
That will be my next patch, if i can work out how to do it and if Adam promises that he's not going to throw away the functionality next month. ;-)
Paul
![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
On 22/03/2011 09:57, Paul Gear wrote:
On 22/03/11 19:05, Nikolay Shopik wrote:
On 22/03/11 11:23, Paul Gear wrote:
It was broken by r1947 and should be fixed by r1950.
Thanks, it could be great to have invert selection or select all. When you having 500 ports on device and only need to monitor few one, it is real helper :).
That will be my next patch, if i can work out how to do it and if Adam promises that he's not going to throw away the functionality next month. ;-)
Beware that i don't like this functionality, and am liable to randomly remove it, should it get too fiddly or produce more than 0 support requests :)
adam.
![](https://secure.gravatar.com/avatar/1c685a39a957c5e4dd2544f4cdc48c02.jpg?s=120&d=mm&r=g)
On 22/03/11 21:06, Adam Armstrong wrote:
On 22/03/2011 09:57, Paul Gear wrote:
On 22/03/11 19:05, Nikolay Shopik wrote:
On 22/03/11 11:23, Paul Gear wrote:
It was broken by r1947 and should be fixed by r1950.
Thanks, it could be great to have invert selection or select all. When you having 500 ports on device and only need to monitor few one, it is real helper :).
That will be my next patch, if i can work out how to do it and if Adam promises that he's not going to throw away the functionality next month. ;-)
Beware that i don't like this functionality, and am liable to randomly remove it, should it get too fiddly or produce more than 0 support requests :)
Well, there goes my next patch. ;-)
![](https://secure.gravatar.com/avatar/1c685a39a957c5e4dd2544f4cdc48c02.jpg?s=120&d=mm&r=g)
On 22/03/11 21:06, Adam Armstrong wrote:
On 22/03/2011 09:57, Paul Gear wrote:
On 22/03/11 19:05, Nikolay Shopik wrote:
On 22/03/11 11:23, Paul Gear wrote:
It was broken by r1947 and should be fixed by r1950.
Thanks, it could be great to have invert selection or select all. When you having 500 ports on device and only need to monitor few one, it is real helper :).
That will be my next patch, if i can work out how to do it and if Adam promises that he's not going to throw away the functionality next month. ;-)
Beware that i don't like this functionality, and am liable to randomly remove it, should it get too fiddly or produce more than 0 support requests :)
OK, i've decided that enough people will want this that we will be able to shout Adam down ;-) , and have created a solution using the jQuery JavaScript library (http://jquery.com/) that is crazy-easy and minimally invasive from a coding perspective.
How ready are you to add an 85 Kb JavaScript library (that's the compressed size) to Observium? If you think it's OK, these files will need to go into html/js/:
* http://code.jquery.com/jquery-1.5.1.min.js * http://code.jquery.com/jquery-1.5.1.js
And then the patch here:
* http://gear.dyndns.org/~paulgear/patches/observium-r1957-port-jquery.patch
Regards, Paul
![](https://secure.gravatar.com/avatar/404ae339508a500c623cf11ce3855f8e.jpg?s=120&d=mm&r=g)
On Mar 22, 2011, at 5:46 PM, Paul Gear wrote:
On 22/03/11 21:06, Adam Armstrong wrote: On 22/03/2011 09:57, Paul Gear wrote: On 22/03/11 19:05, Nikolay Shopik wrote: On 22/03/11 11:23, Paul Gear wrote: It was broken by r1947 and should be fixed by r1950. Thanks, it could be great to have invert selection or select all. When you having 500 ports on device and only need to monitor few one, it is real helper :). That will be my next patch, if i can work out how to do it and if Adam promises that he's not going to throw away the functionality next month. ;-)
Beware that i don't like this functionality, and am liable to randomly remove it, should it get too fiddly or produce more than 0 support requests :)
OK, i've decided that enough people will want this that we will be able to shout Adam down ;-) , and have created a solution using the jQuery JavaScript library (http://jquery.com/) that is crazy-easy and minimally invasive from a coding perspective.
How ready are you to add an 85 Kb JavaScript library (that's the compressed size) to Observium? If you think it's OK, these files will need to go into html/js/:
* http://code.jquery.com/jquery-1.5.1.min.js * http://code.jquery.com/jquery-1.5.1.js
And then the patch here:
* http://gear.dyndns.org/~paulgear/patches/observium-r1957-port-jquery.patch
Regards, Paul
<ATT00002..txt>
+1 from me. I've been working on a patch to allow sorting of certain tables (i.e. sort ports by bytes or packets in or out). Right now I'm doing it with static pages that are just sorting the SQL queries, but I'd much rather do it dynamically with javascript. I've found a table sorter library that uses jQuery.
Mike
![](https://secure.gravatar.com/avatar/1c685a39a957c5e4dd2544f4cdc48c02.jpg?s=120&d=mm&r=g)
On 23/03/11 10:01, Michael Robbert wrote:
... +1 from me. I've been working on a patch to allow sorting of certain tables (i.e. sort ports by bytes or packets in or out). Right now I'm doing it with static pages that are just sorting the SQL queries, but I'd much rather do it dynamically with javascript. I've found a table sorter library that uses jQuery.
Yeah - i noticed http://tablesorter.com/ when i was checking out the jQuery docs, and wondered whether it wouldn't have some useful applications for some of the device & health overview pages.
Paul
![](https://secure.gravatar.com/avatar/c78dbe4eb34d179842e7dfd31431f069.jpg?s=120&d=mm&r=g)
On 2011.03.23. 1:41, Paul Gear wrote:
On 23/03/11 10:01, Michael Robbert wrote:
... +1 from me. I've been working on a patch to allow sorting of certain tables (i.e. sort ports by bytes or packets in or out). Right now I'm doing it with static pages that are just sorting the SQL queries, but I'd much rather do it dynamically with javascript. I've found a table sorter library that uses jQuery.
Yeah - i noticed http://tablesorter.com/ when i was checking out the jQuery docs, and wondered whether it wouldn't have some useful applications for some of the device & health overview pages.
Paul
Hi!
I intend to avoid bikeshedding the topic, but in case you weren't aware of the other solutions (and you've some time to determine which one would be the best) please take a look at these:
First an other jQuery plugin, I've used it a few times, and it's quite nice: http://datatables.net/ Though a bit heavier than TableSorter.
And there's jqGrid, comes with not one but two kitchen sinks. http://www.trirand.com/blog/jqgrid/jqgrid.html
Plus a lot more mentioned on http://stackoverflow.com/questions/159025/jquery-grid-recommendations
![](https://secure.gravatar.com/avatar/21caf0a08d095be7196a1648d20942be.jpg?s=120&d=mm&r=g)
On 23/03/2011 1:01, Michael Robbert wrote:
+1 from me. I've been working on a patch to allow sorting of certain tables (i.e. sort ports by bytes or packets in or out). Right now I'm doing it with static pages that are just sorting the SQL queries, but I'd much rather do it dynamically with javascript. I've found a table sorter library that uses jQuery.
Mike,
We already have sortable.js in there since a few revisions (and some tables are already sortable, needs class=sortable i think), but it's not totally clear you can click the headings of some tables to sort. There's still a bug left that it juggles the rows around so that the alternating colours are no longer alternating. I have a bugfix floating around for that somewhere that I still need to hunt down, but if your jquery tablesorter thing sorts that automatically, that would also be excellent. :-)
Tom
![](https://secure.gravatar.com/avatar/1c685a39a957c5e4dd2544f4cdc48c02.jpg?s=120&d=mm&r=g)
On 23/03/11 09:46, Paul Gear wrote:
... And then the patch here:
* http://gear.dyndns.org/~paulgear/patches/observium-r1957-port-jquery.patch <http://gear.dyndns.org/%7Epaulgear/patches/observium-r1957-port-jquery.patch>
To the person who downloaded this patch this morning, please update your copy - it contained a minor typo which prevents it from working.
Regards, Paul
![](https://secure.gravatar.com/avatar/21caf0a08d095be7196a1648d20942be.jpg?s=120&d=mm&r=g)
On 23/03/2011 9:36, Nikolay Shopik wrote:
On 23/03/11 02:46, Paul Gear wrote:
How ready are you to add an 85 Kb JavaScript library (that's the compressed size) to Observium?
We also be glad to have it so we can actually fix popup graphs especially these on edge screen.
There's a patch floating on the forum somewhere which I totally forgot about, if someone can go through the effort of creating a working diff I'll be quick to apply it!
Tom
![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
On 22/03/2011 23:46, Paul Gear wrote:
On 22/03/11 21:06, Adam Armstrong wrote:
On 22/03/2011 09:57, Paul Gear wrote:
On 22/03/11 19:05, Nikolay Shopik wrote:
On 22/03/11 11:23, Paul Gear wrote:
It was broken by r1947 and should be fixed by r1950.
Thanks, it could be great to have invert selection or select all. When you having 500 ports on device and only need to monitor few one, it is real helper :).
That will be my next patch, if i can work out how to do it and if Adam promises that he's not going to throw away the functionality next month. ;-)
Beware that i don't like this functionality, and am liable to randomly remove it, should it get too fiddly or produce more than 0 support requests :)
OK, i've decided that enough people will want this that we will be able to shout Adam down ;-) , and have created a solution using the jQuery JavaScript library (http://jquery.com/) that is crazy-easy and minimally invasive from a coding perspective.
How ready are you to add an 85 Kb JavaScript library (that's the compressed size) to Observium? If you think it's OK, these files will need to go into html/js/:
* http://code.jquery.com/jquery-1.5.1.min.js * http://code.jquery.com/jquery-1.5.1.js
And then the patch here:
* http://gear.dyndns.org/~paulgear/patches/observium-r1957-port-jquery.patch
I don't mind including JQuery. In terms of UI, I'd quite like it if the setting was toggled *when* you clicked the tickbox, rather than when you clicked "submit". But that would be much more involved, I expect.
adam.
![](https://secure.gravatar.com/avatar/1c685a39a957c5e4dd2544f4cdc48c02.jpg?s=120&d=mm&r=g)
On 23/03/11 19:09, Adam Armstrong wrote:
On 22/03/2011 23:46, Paul Gear wrote:
... OK, i've decided that enough people will want this that we will be able to shout Adam down ;-) , and have created a solution using the jQuery JavaScript library (http://jquery.com/) that is crazy-easy and minimally invasive from a coding perspective. .... And then the patch here:
* http://gear.dyndns.org/~paulgear/patches/observium-r1957-port-jquery.patch <http://gear.dyndns.org/%7Epaulgear/patches/observium-r1957-port-jquery.patch>
I don't mind including JQuery. In terms of UI, I'd quite like it if the setting was toggled *when* you clicked the tickbox, rather than when you clicked "submit". But that would be much more involved, I expect.
The box values are changed immediately on button press (it's a button, not a checkbox), but it doesn't commit to the database until you press submit. I would much rather it happened that way, personally, because usually there are additional edits to be done after a select all or a toggle.
The way i would normally use this feature is that i would add a new edge switch, click select all in the ignore column, then deselect the ports which i want to be notified about - usually just the uplink to distribution/core, downlinks to other switches, and servers/printer ports which don't flap much.
Paul
participants (6)
-
Adam Armstrong
-
Michael Robbert
-
Nikolay Shopik
-
Paul Gear
-
Pász Gergely
-
Tom Laermans