49 Commits

Author SHA1 Message Date
Tony Murray 4c0412b14d feature: Wireless Sensors Overhaul (#6471)
* feature: Wireless Sensors
Includes client counts for ios and unifi
Graphing could use some improvement.
Alerting and threshold ui not implemented

WIP: starting OO based wireless sensors.

Class based functionality working
remove old functional files
add schema file

discovery needs to be enabled, not polling

fix up schema

fix Unifi discovery not returning an array

Add some debug when discovering a sensor.
Fix style.

Add missing semicolin

Add a null object (Generic) for OS.
Fill out some phpdocs

Re-organized code
Each sensor type now has it's own discovery and polling interface
Custom polling tested with Unifi CCQ

Left to do:
Implement UI (Graphs and Custom thresholds)
Alerting
Testing

Fix event message text

Remove runDiscovery and runPolling from OS, they are unused and don't belong there.

Cleanups/docs

Missed this file.

Remove the requirement to fetch the current value to check validity.
Do that automatically if current is not specified
A few cleanups here and there

First pass at graphing.
device_ and wireless_ graphs added.

Add RouterOS support

Singleton OS instance isn't required right now.
Remove that to allow some memory to be freed.

Add wireless to the device list metrics.
Make all metrics clickable

Tweak graphs a bit

Implement limit configuration page.
Use sensors page as common code instead of duplicating.
Clean up some javascript interactions:  Allow enter on values to save. Cancel if update is not needed. Enable the clear custom button after setting a custom value.
Add some wireless alert rules to the library.

Add documentation.

Add unifi client counts by ssid in addition to radio.
Optimize Sensor polling a bit.

Add HP MSM clients support (for full controller)
Fix function accessibility

Formalize the discovery and poller interfaces.

Add Xirrus clients and noise floor
move module interfaces to a more appropriate place.
push caching code up to os, unsure about this do to the limitations

No point in selectively enabling wireless discovery.  We only discover if the device supports something.

Add RSSI, Power, and Rate.
Add these sensors for Ubnt Airos.
Clean up some copyrights.

Reduce the amount of files need to add new types.
Leave graph files for consistency and to allow customization.

Remove the old wifi clients graph completely.
ciscowlc should have improved counts (total and per-ssid)

Schema didn't get added.

Impelement the rest of the AirOS sensors
Reformat and re-organize the Airos.php class.

Add several UBNT AirFiber sensors

A few fixes add links to the section headers

Add HP MSM mibs.

* Schema file got dropped in rebase.

* Add wireless menu to view sensors across all devices.
Icons in the menu need help :/

* Add HeliOS, Mimosa, and Siklu support
Sensors added SNR + Noise

* Add power and utilization to Unifi

* Update polling to prefetch all sensor data in a few snmp requests as possible

* Add Extendair: tx+rx power, aggregate rate, frequency

* Add a check for duplicate sensors in discovery.  Just print an error for now.

* Add Bit Error Ratio (named error-ratio to allow for bit error rate to be added if needed)
Fix an incorrect link in the wireless sensors table

* Add error rate and change all bps and Hz to use si units

* Fixes to limits and frequency display

* Fix overview graph frequency display
A few decimal place tweaks

* Don't allow switching sensor and wireless-sensor graphs, it doesn't work.
Change individual distance graphs to use si units

* Go through the OS and make sure I got all the sensors I can (probably missed some still)
Because pollWirelessChannelAsFrequency() is generic and a little complex, so pull it up to OS.
Message to help developers adding supports that don't return an array from discover functions.

* Fix some issues

* Remove noise and signal for now at least
A couple more fixes
Add a notification

* Oopsie

* Bonus AirFiber sensors
2017-05-01 23:49:11 -05:00
Tony Murray c01d8b7c4e Eradicate is file checks for our rrds (leave them for nfsen and collectd) 2016-07-08 15:09:11 -05:00
Tony Murray 57650e4ffc Remove nfs requirement for distributed poller (with rrdtool 1.5+)
Use data_update instead of rrd_update/rrd_create and influx_update
Centralize rrd file check so we can check against a remote rrdcached server too
Use rrd_name() to generate rrd file names
2016-07-07 21:10:06 -05:00
Paul Gear e5549e9423 Remove unused files 2016-01-02 07:10:41 +10:00
Job Snijders d8693f05ae Fix coding style part 2 2015-07-15 11:04:22 +02:00
Job Snijders fa0d021fec Remove empty file 2015-07-11 16:12:35 +02:00
Job Snijders ebd0f6fc35 Apply "Squiz" code style on old (pre-2014) files 2015-07-11 16:12:35 +02:00
Rudy Hardeman 2ec929b571 initial version 2015-05-19 22:19:13 +02:00
Adam Amstrong d3796004ae accesspoint support (probably) from ethan sommer (#50)
git-svn-id: http://www.observium.org/svn/observer/trunk@3223 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-21 18:17:23 +00:00
Adam Amstrong d52042ba47 cleanups to how graphing works. start using device= for device graphs.
git-svn-id: http://www.observium.org/svn/observer/trunk@3167 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-11 13:26:14 +00:00
Tom Laermans 2667649d3c syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@2970 61d68cd4-352d-0410-923a-c4978735b2b8
2012-04-06 13:56:23 +00:00
Tom Laermans a369c442eb syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@2643 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-04 14:38:54 +00:00
Tom Laermans 9a1bee1458 more code cleanup (last commit for now)
git-svn-id: http://www.observium.org/svn/observer/trunk@2520 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-20 14:37:54 +00:00
Adam Amstrong 63b25bb2f7 break up array()s into individual definitions. add unadded files.
git-svn-id: http://www.observium.org/svn/observer/trunk@2247 61d68cd4-352d-0410-923a-c4978735b2b8
2011-05-05 11:27:22 +00:00
Tom Laermans 3c79cafb2c can't stop uniformicationing
git-svn-id: http://www.observium.org/svn/observer/trunk@1915 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-17 16:35:18 +00:00
Tom Laermans 1a477eebbe device subpages cleanup, remove dead code
git-svn-id: http://www.observium.org/svn/observer/trunk@1896 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-16 23:10:10 +00:00
Adam Amstrong 7b2fc2dbe1 fixes to new sensors setup
git-svn-id: http://www.observium.org/svn/observer/trunk@1533 61d68cd4-352d-0410-923a-c4978735b2b8
2010-07-29 20:34:31 +00:00
Adam Amstrong f29e7b755b redesigned graph defining system (still seems a bit batshit, but nevermind). lots of improvements to various pollers, only writing RRDs if valid data is returned, etc.
git-svn-id: http://www.observium.org/svn/observer/trunk@1506 61d68cd4-352d-0410-923a-c4978735b2b8
2010-07-28 19:43:02 +00:00
Adam Amstrong b37c7c87ba remove unneeded <br /> from uptime graph
git-svn-id: http://www.observium.org/svn/observer/trunk@1475 61d68cd4-352d-0410-923a-c4978735b2b8
2010-07-25 18:06:29 +00:00
Tom Laermans f09b9c4d63 move wireless stats to system tab, minor fixes
git-svn-id: http://www.observium.org/svn/observer/trunk@1457 61d68cd4-352d-0410-923a-c4978735b2b8
2010-07-21 22:28:50 +00:00
Adam Amstrong 6bb7fe026f improving ipSystemStats v4/v6 stats, clean up some variables in defaults.inc.php
git-svn-id: http://www.observium.org/svn/observer/trunk@1455 61d68cd4-352d-0410-923a-c4978735b2b8
2010-07-21 15:14:02 +00:00
Adam Amstrong 0d0e32159b sexytime updated UCD-MIB collector, and some moving around of graphing code
git-svn-id: http://www.observium.org/svn/observer/trunk@1453 61d68cd4-352d-0410-923a-c4978735b2b8
2010-07-21 02:43:47 +00:00
Adam Amstrong 823b228469 fix screenos detection and add re-add graph for sessions
git-svn-id: http://www.observium.org/svn/observer/trunk@1444 61d68cd4-352d-0410-923a-c4978735b2b8
2010-07-20 14:53:55 +00:00
Tom Laermans 689db11be7 fix wireless client display
git-svn-id: http://www.observium.org/svn/observer/trunk@1419 61d68cd4-352d-0410-923a-c4978735b2b8
2010-07-18 18:48:14 +00:00
Tom Laermans 93bfb66c3c basic support for polling number of connected clients on Aironet and Airport devices, minor fixups
git-svn-id: http://www.observium.org/svn/observer/trunk@1418 61d68cd4-352d-0410-923a-c4978735b2b8
2010-07-18 18:28:32 +00:00
Adam Amstrong c2b6f80aec new graph structure. cleaned up extremeware. print device ver/features/hw during poll. add extreme device rewriting
git-svn-id: http://www.observium.org/svn/observer/trunk@1399 61d68cd4-352d-0410-923a-c4978735b2b8
2010-07-18 03:56:19 +00:00
Adam Amstrong 5559f2c0b5 clean up some windows stuff
git-svn-id: http://www.observium.org/svn/observer/trunk@1380 61d68cd4-352d-0410-923a-c4978735b2b8
2010-07-17 15:58:16 +00:00
Adam Amstrong d4be0d58fb add support for redback and services discovery (thanks klaver) perhaps need to make services discovery one-time only, triggered, or disableable :>
git-svn-id: http://www.observium.org/svn/observer/trunk@1276 61d68cd4-352d-0410-923a-c4978735b2b8
2010-06-28 12:47:27 +00:00
Tom Laermans 647bf59d1c more mge fixes, cleanups, and addition of frequency monitoring (no webinterface part yet)
git-svn-id: http://www.observium.org/svn/observer/trunk@1095 61d68cd4-352d-0410-923a-c4978735b2b8
2010-06-03 10:23:11 +00:00
Tom Laermans 94cfe9d618 cleanups + more mge ups
git-svn-id: http://www.observium.org/svn/observer/trunk@1094 61d68cd4-352d-0410-923a-c4978735b2b8
2010-06-03 09:42:24 +00:00
Adam Amstrong 2585058963 AlliedTelesyn Support
git-svn-id: http://www.observium.org/svn/observer/trunk@1056 61d68cd4-352d-0410-923a-c4978735b2b8
2010-04-08 18:26:24 +00:00
Adam Amstrong 81eb203abe storage fixes, moving things from graphing page, ironware dynamic memory pool (static!)
git-svn-id: http://www.observium.org/svn/observer/trunk@947 61d68cd4-352d-0410-923a-c4978735b2b8
2010-02-25 00:56:13 +00:00
Adam Amstrong 17fe4219c2 fix etherlike graphing,more storage changes, create health aggregate page
git-svn-id: http://www.observium.org/svn/observer/trunk@946 61d68cd4-352d-0410-923a-c4978735b2b8
2010-02-24 21:44:32 +00:00
Adam Amstrong afdf4fbfc3 replace old hrStorage poller with generic storage poller and hrStorage plugin
*** OLD RRDFILES ARE USELESS NOW***
remove a load of old processor and storage stuff add more % bars to things


git-svn-id: http://www.observium.org/svn/observer/trunk@936 61d68cd4-352d-0410-923a-c4978735b2b8
2010-02-24 02:16:56 +00:00
Adam Amstrong 05735f4d55 adding more junose and foundry/brocade. adding new mibs. unifying processor polling
git-svn-id: http://www.observium.org/svn/observer/trunk@831 61d68cd4-352d-0410-923a-c4978735b2b8
2010-02-13 21:45:39 +00:00
Adam Amstrong 54e8ac3cbd add new IronWare (Brocade/Foundry) OS type. rename temp/fan/voltage_host to device_id
git-svn-id: http://www.observium.org/svn/observer/trunk@830 61d68cd4-352d-0410-923a-c4978735b2b8
2010-02-13 07:40:43 +00:00
Adam Amstrong 88ec70ad14 fixing graphing code and graphing page
git-svn-id: http://www.observium.org/svn/observer/trunk@787 61d68cd4-352d-0410-923a-c4978735b2b8
2010-02-08 00:36:28 +00:00
Tom Laermans d1d1e28642 add uptime graph for papouch tme
git-svn-id: http://www.observium.org/svn/observer/trunk@692 61d68cd4-352d-0410-923a-c4978735b2b8
2010-01-15 11:48:15 +00:00
Tom Laermans 58e2a717e1 err, right
git-svn-id: http://www.observium.org/svn/observer/trunk@618 61d68cd4-352d-0410-923a-c4978735b2b8
2010-01-07 20:28:38 +00:00
Tom Laermans 1f64c5d038 move graphs code into separate files per OS
git-svn-id: http://www.observium.org/svn/observer/trunk@617 61d68cd4-352d-0410-923a-c4978735b2b8
2010-01-07 20:27:17 +00:00
Tom Laermans 47fe912e03 fix junos graphs tab
git-svn-id: http://www.observium.org/svn/observer/trunk@616 61d68cd4-352d-0410-923a-c4978735b2b8
2010-01-07 19:13:57 +00:00
Adam Amstrong 5dcf9d6854 add example snmpd.conf :)
git-svn-id: http://www.observium.org/svn/observer/trunk@537 61d68cd4-352d-0410-923a-c4978735b2b8
2009-11-30 16:06:30 +00:00
Adam Amstrong 2647205912 fixing silly page
git-svn-id: http://www.observium.org/svn/observer/trunk@533 61d68cd4-352d-0410-923a-c4978735b2b8
2009-11-28 09:55:41 +00:00
Adam Amstrong 7157ec5549 a billion changes. **** MAKE SURE TO UPDATE DATABASE AND RUN poll-os.php AND discovery.php -h all **** This is VERY important, as a lot of things have changed! Expect missing files, and another update soon!
git-svn-id: http://www.observium.org/svn/observer/trunk@531 61d68cd4-352d-0410-923a-c4978735b2b8
2009-11-28 09:48:23 +00:00
Adam Amstrong 975c3a2a93 updates et al
git-svn-id: http://www.observium.org/svn/observer/trunk@503 61d68cd4-352d-0410-923a-c4978735b2b8
2009-11-07 02:30:38 +00:00
Adam Amstrong 1f1eda9764 Major updates on the road to 0.7
git-svn-id: http://www.observium.org/svn/observer/trunk@492 61d68cd4-352d-0410-923a-c4978735b2b8
2009-10-28 13:49:37 +00:00
Adam Amstrong bfc9f845ce replacing <? with <?php
git-svn-id: http://www.observium.org/svn/observer/trunk@466 61d68cd4-352d-0410-923a-c4978735b2b8
2009-09-07 11:07:59 +00:00
Adam Amstrong 501f68880c add more files
git-svn-id: http://www.observium.org/svn/observer/trunk@411 61d68cd4-352d-0410-923a-c4978735b2b8
2009-04-28 11:23:38 +00:00
Adam Amstrong 35bc68a0d9 moving things around, making things tidier
git-svn-id: http://www.observium.org/svn/observer/trunk@406 61d68cd4-352d-0410-923a-c4978735b2b8
2009-04-18 21:57:32 +00:00