Commit Graph

4838 Commits

Author SHA1 Message Date
Søren Rosiak
c40b762e23 feature: Update Juniper MSS Support (#6565)
* feature: Improve Juniper MSS Support

Add the following sensors
- Processor
- Mempool
- State

* Use snmp_get_multi

* updated mibs dir
2017-05-16 22:22:46 +01:00
Søren Rosiak
4c59e6cf0a newdevice: Updated Barracuda NG Firewall Detection (#6658)
fix #6653
2017-05-16 22:13:19 +01:00
Marcus Pink
5b9623d8d4 newdevice: Added detection for HPE RT3000 UPS (#6638)
* newdevice: HPE RT3000 UPS

* newdevice: HPE RT3000 UPS

* changed polling to snmp_get_multi_oid, fixed divisor for load and voltage

* fixed blank line in functions.inc.php
2017-05-16 21:42:10 +01:00
Tony Murray
683a10e723 fix: Improve authentication load time and security (#6615)
* fix: minimize session open time
page/graphs speedup part 2

Write close the session as soon as we no longer need to write to it. Prevents the session from blocking other requests.
Do not run through full authentication functions if the session is already authenticated.
Removes password from the session as well as some items to prevent session fixation from #4608.

WARNING: This will cause issues for ad/ldap users who do not have a bind user configured!

* Do no erase username when using cookie auth.
Properly close the session in ajax_setresolution.php

* write close the session as soon as possible in ajax_setresolution.php

* Remove session regeneration. It is not compatible with the current code and would require more changes.

* Totally refactor authentication.  Extract code to functions for re-use and improved readability

* Use exceptions for authentication and error logging
Tested: mysql, ad_auth with and without bind user

* fix a couple scrutinizer issues

* fix reauthenticate in radius
2017-05-15 22:18:23 -05:00
Neil Lathwood
612186dabf alerting: Added option to enable/disable option for sending alerts to normal users (#6590)
* alerting: Added option to enable/disable option for sending alerts to normal users

* Update notifications.rss

* added missing sql

* Fix schema

* Update notifications.rss
2017-05-15 23:35:26 +01:00
Tony Murray
74c7611bca newdevice: Make TiMOS detection more generic, rebrand to Nokia (#6645)
Includes all product lines SR, SAS, ESS
2017-05-15 23:07:14 +01:00
Neil Lathwood
4d0832e412 refactor: Updated vlan discovery to support JunOS (#6597) 2017-05-13 23:06:14 +01:00
Arzhel Younsi
073b444d4a alerts: Remove prettifying of mysql query in alerts (#6614)
* Pretty mysql for alerts breaks regex rules

Fix for issue #6613

* Remove useless replacements
2017-05-13 22:32:41 +01:00
Tony Murray
595e75bd14 refactor: modest speedup to database config population (#6636)
use references to assign values into the config array more efficiently, prevents a lot of memory churn caused by the recursive approach
2017-05-13 19:54:53 +01:00
Neil Lathwood
1ce58cd33d feature: Added functionality to support recording status info (#6628)
* feature: Added functionality to support recording status info

* updated phpdoc block
2017-05-13 06:55:38 -05:00
Neil Lathwood
0338734fe7 feature: Added script (scripts/test-template.php) to test alert templates (#6631)
* feature: Added script (scripts/test-template.php) to test alert templates

* moved remaining functions, fixed php 5.3 and include dir

* added docs on use for test-template script
2017-05-13 06:46:08 -05:00
Maciej Kaczkowski
cef1b723f8 newdevice: Added support for Terra sti410C (#6598)
* newdevice: Added support for Terra sti410c

* newdevice: tests for Terra sti410c

* renamed sti410c to terra, added support for sti440 and recognition for sda410C, sta410C, saa410C, sdi410C, sai410C, ttd440, ttx410C, tdx410C, sdi480

* fixed terra.svg and access to sysDescr
2017-05-13 09:15:23 +01:00
Tony Murray
b6e18db766 fix: page/graph load speed: part 1 (#6611)
* fix: page/graph load speed: part 1
Speed up load_all_os() by caching the full $config['os'] array
Function time goes from 1.13648s -> 0.00073s
The cache is updated during discovery, but only if it is >22hrs old.
Additionally, the cache is not used and a full yaml load is forced if the cache is >24hrs old.
The cache time is controlled by $config['os_def_cache_time'], I don't see any reason anyone would change that time.

* Delete Session.php

* Include the cache directory.
2017-05-10 08:57:10 +01:00
Olivier Beytrison
b0c1885d73 fix: Actives PRI calls on Cisco can be an array (#6607)
* actives PRI calls can be an array

* graph when there's at least 1 line, not active calls
2017-05-09 07:57:02 +01:00
Neil Lathwood
a96335ecaf newdevice: Added support for Cisco SRP devices (#6600)
* newdevice: Added support for Cisco SRP devices

* added snmprec file
2017-05-08 22:01:41 +01:00
Tom van Leeuwen
af9954610f fix: Sanitized nginx application output for ubuntu-16.04 2017-05-08 20:07:37 +01:00
Tony Murray
379176ceac fix: MySQL app graphs with rrdcached (#6608)
Do not send -1 values when we set the minimum as 0.  Send the proper U for non-values.
fixes: #6223
2017-05-08 19:57:51 +01:00
Neil Lathwood
6734e84382 feature: Added ability to whitelist ifDescr values from being ignored with good_if (#6584)
* feature: Added ability to whitelist ifDescr values from being ignored with good_if

* added ras to enterasys yaml
2017-05-05 15:18:33 -05:00
NerdBlender
a368a73825 newdevice: Added 3 Phase APC UPS Support issue #2733 & #5504 (#5558)
* Added 3 Phase APC UPS Support issue #2733

* Added 3 Phase APC UPS Support issue #2733 - v2

* Added 3 Phase APC UPS Support issue #2733 - v3

* Added 3 Phase APC UPS Support issue #2733 - v3

* Added 3 Phase APC UPS Support issue #2733 - v3.1

* Added 3 Phase APC UPS Support issue #2733 - v3.2

* Added 3 Phase APC UPS Support issue #2733 - v3.3

* Added 3 Phase APC UPS Support issue #2733 - v3.4

* Added 3 Phase APC UPS Support issue #2733 - v4

* Added 3 Phase APC UPS Support issue #2733 - v4.1

* Update apc.yaml
2017-05-05 13:16:46 +01:00
Neil Lathwood
34c35f3627 webui: Updated remaining display options where we do not show sysName if hostname is IP (#6585)
* webui: Updated remaining display options where we do not show sysName if hostname is IP

* renamed function + simplified
2017-05-05 06:25:58 -05:00
Tony Murray
101aa13d43 Set airport overview graphs (#6587) 2017-05-05 06:56:15 +01:00
Neil Lathwood
4ba8be2dfe fix: fail2ban application was setting the wrong variables (#6582) 2017-05-04 13:22:13 -05:00
Slashdoom
bdf1616c76 feature: Added additional Unbound chart for query cache info (#6574)
* Update unbound.inc.php

* Update unbound.inc.php

* Create unbound_cache.inc.php

* Update AUTHORS.md

* Update apps.inc.php
2017-05-04 11:04:10 +01:00
Tony Murray
5ca07e11aa newdevice: Added connected AP count for Cisco WLCs (#6572)
* newdevice: Add connected AP count for Cisco WLCs
Adds ap-count wireless sensor type
fixes: #4295

* better detection
Update the overview graph to the new one
2017-05-04 08:03:10 +01:00
pblasquez
a475069c9b newdevice: Add FWSM recognition to PIX OS (#6569) 2017-05-03 19:45:25 -05:00
FTBZ
6c555c6fb5 fix: Fixed load divisor for eaton-mgeups (rfc1628) (#6566) 2017-05-03 22:38:43 +01:00
Neil Lathwood
23fa26b2b1 fix schema update calling set_lock() (#6563) 2017-05-03 11:15:54 -05:00
Tony Murray
4dbab407bb refactor: OS discovery tests are now dynamic (#6555)
* refactor: OS discovery tests are now dynamic
All that needs to be done now is supply snmprec files with the proper name. os.snmprec or os_description.snmprec
I also tweaked the loading of yaml files to speed up the tests substantially.
Verifies all os have at least one test and all snmprec files are tested.

* fix typo
2017-05-03 15:52:53 +01:00
FTBZ
c772a36142 newdevice: Added CPU sensor for Cisco WLC (#6562) 2017-05-03 15:48:59 +01:00
Neil Lathwood
568a2bf21d Added more sensors for Exalt ExtendAir devices (#6531) 2017-05-03 15:24:57 +01:00
VVelox
62a562b39a feature: Updated BIND application (#6218)
* add BIND named poller

* add BIND named graphs

* add BIND stuff

* add the color pallete used by this

* add app support

* white space cleanup

* document the bind stuff

* expand the linux package stuff a bit

* note the agent and zero_stats value

* now include the $mib stuff

* white space cleanup

* whoops, add the update app bit

* correct a error added when merging

* readd copyright info

* note myself in the copyright info
2017-05-03 15:23:33 +01:00
Tony Murray
5e790ee617 newdevice: fix Extremeware and XOS detection (#6554) 2017-05-03 15:02:10 +01:00
Neil Lathwood
41e7689c77 refactor: DB Updates will now file level lock to stop duplicate updates (#6469)
* refactor: DB Updates will now file level lock to stop duplicate updates

* scrut fixes

* renamed function from clear_lock() to release_lock()
2017-05-03 14:48:23 +01:00
Olivier Beytrison
0dcc1d18c5 Fix GE UPS voltage factor (#6558) 2017-05-03 14:30:40 +01:00
Kako Pedreros
233f8e83b4 newdevice: Added CPU and Memory pool for BDCom Switchs (#6523)
* Added feature CPU and Memory monitoring on BDCom switchs

* Added feature CPU and Memory monitoring on BDCom switchs, plus pre-commit check

* Added mib files, and modification given by laf

* Replaced png logo with a svg version. Modification in the validation of processor discovery.

* Replaced png logo with a svg version. Modification in the validation of processor discovery + added files.
2017-05-03 00:04:44 +01:00
Olivier Beytrison
2f5a1742c3 newdevice: Added detection for GE UPS (#6549) (#6553)
* Add support for GE UPS (#6549)

* rename OS and remove sysDescr regex
2017-05-02 15:20:28 +01:00
Olivier Beytrison
a6eca494ff newdevice: Added detection for AKCP SecurityProbe (#6550)
* Add support for AKCP SecurityProbe

* Add tests for AKCP SecurityProbe
2017-05-02 14:48:44 +01:00
Neil Lathwood
e2f0965b5c newdevice: Added support for Aruba ClearPass devices (#6528) 2017-05-02 07:46:02 -05:00
network-guy
371c0ff65b newdevice: Added support for Cisco's AsyncOS (#6545)
* Create asyncos.yaml

Added device definition for AsyncOS devices.

* Create asyncos.inc.php

Add poller definition for Async devices.

* Update asyncos.yaml

Added discovery modules.

* Update asyncos.inc.php

Refactored version, hardware, and serial parsers.

* Add AsyncOS MIBs

Add MIBs for AsyncOS WSA and ESA appliances.

* Added OS test

* AsyncOS Refactoring/OS Support

* Change serial number in unit OS test
2017-05-02 07:53:56 +01:00
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
Neil Lathwood
72a0d8202a newdevice: Added further health support for Netbotz devices (#6529) 2017-04-30 16:32:39 +00:00
Neil Lathwood
e7e5d51b30 newdevice: Added support for Exalt ExtendAir (#6524) 2017-04-29 15:58:06 +00:00
Neil Lathwood
cf026659cb newdevice: Added detection for Alvarion Breeze units (#6526) 2017-04-29 15:56:17 +00:00
Neil Lathwood
14fd57bd57 newdevice: Added support for Avaya Scopia devices (#6527) 2017-04-29 15:55:25 +00:00
Tony Murray
374a4041af fix: inconsistent device discovery (#6518)
There were two or more separate $device arrays during discovery. When one was updated, others were not.
Combine those all.
Make sure the new os is loaded if the os changed.
2017-04-28 22:50:00 +01:00
Svennd
0211c5864b feature: Added NFS-server application support (#6320)
* update

just realized the pull script is a bad idea. not really portable. no
nfsv2 stats for centos 7+

* some php errors

* fixed v4ops

removed nfs-server.sh, as only cat /proc/net/rpc/nfsd is needed as an
extend.

* split rrd

split rrd to store and pull them seperatly

* scrutinizer-ci fix

scrutinizer-ci fix

* phpcbf

* messed up

* stuck, please ignore

* applied reviews murrant suggestions

applied reviews murrant suggestions

* dirty scope

dirty scope was the issue

* style fix ?

* style PSR2

* file handle chart

* fixed style + added documentation

* applied review tasks by murrant, thx murrant!

* applied laf's review, also added tabs in the view to reduce the amount of graphs per page
2017-04-28 22:48:26 +01:00
Neil Lathwood
d67d62eacb fix: Added more safety checking into create_state_index() so we do not end up with stale state names but no translation (#6516) 2017-04-27 22:33:56 -05:00
Neil Lathwood
153f0de12f fix: Actually reload oxidized when we should not when we think we should (#6515) 2017-04-27 22:31:48 -05:00
Neil Lathwood
6b5faa75dd newdevice: Added more health sensors (#6517) 2017-04-27 22:17:58 -05:00
Neil Lathwood
4c42c91ba8 newdevice: Added support for Tycon Systems TPDIN units (#6506) 2017-04-27 22:16:41 -05:00