![](https://secure.gravatar.com/avatar/990281e0cef3d194deb34c14541e3936.jpg?s=120&d=mm&r=g)
“tbh, neither is PHP, but I have no choice there!”
Okay, this comment deserves some explanation. I thought you started this project. -- Cameron Moore
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Adam Armstrong Sent: Thursday, September 17, 2015 1:08 PM To: observium@observium.org Subject: Re: [Observium] Disabling polling on large number of ports
Ideally the settings should be saved AJAX individually, but JS/AJAX isn't my strong point (tbh, neither is PHP, but I have no choice there!)
adam.
On 17/09/2015 18:51:00, Moore, Cameron <cmoore@hsutx.edumailto:cmoore@hsutx.edu> wrote: Adam, I’ve run across this issue in the past, but it’s been a while. I’ve wanted to redesign the Ports page to use a little javascript (helperhttps://github.com/macek/jquery-serialize-object) to send a single JSON stanza on POST instead of 100s of individual variables. Haven’t thought it all the way through, but maybe you want to tackle it.
Another idea I haven’t had time to implement is Shift+Click to toggle a contiguous group of inputs. So, say you want to disable alerts on ifIndex 10 through 50. Click the ifIndex 10 toggle switch, then Shift+Click the ifIndex 50 toggle. This feature could be a big time saver for some people. -- Cameron Moore
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Adam Armstrong Sent: Thursday, September 17, 2015 11:06 AM To: observium@observium.orgmailto:observium@observium.org Subject: Re: [Observium] Disabling polling on large number of ports
Hi AJ,
It might be easier to exclude these in the alert association if you can work out a set of rules for that.
The page not saving is due to a PHP limitation. You need to change "max_input_vars" in your php.ini (/etc/php5/apache/php.ini, perhaps)
adam.
On 17/09/2015 17:03:30, AJ Schroeder <aj.schroeder@directsupply.commailto:aj.schroeder@directsupply.com> wrote: Hello list,
I have just added a bunch of our end user access switches to Observium (thanks to the devs adding Nortel support!). Anyway, I don’t want to be alerted or notified if those particular ports go up or down. The only way I know how to stop alerting on ports is to toggle the alerts field in the ports properties of the specific device.
However, whenever I select all the ports on a device that has a large number of ports (over 300) all the ports show that they are toggled to off, then I click save. When the page refreshes I only see about two-thirds of them are toggled off, the rest of them are still set to poll or alert. When I manually toggle some ports and click save, the setting doesn’t save.
Any help or insight on this would be appreciated.
AJ Schroeder