Commit Graph
14630 Commits
Author SHA1 Message Date
mattie47andTony Murray 71b44407b9 Improve legacy Allied Telesis hardware support (#8071)
* devices: Improved Legacy Allied Telesis hardware support #8071

This  patch covers:

Improved SNMPrec test coverage for Allied telesis devices

allied.yaml
	- Increased device exception OID list.
		-  This list of devices are running RADLAN OS, and should not be triggered by allied.yaml
	- Minor bug fixes

allied.inc.php
	- Added updated support for Alliedware devices
		-  Version
		-  Features
		-  Hardware
		-  Serial
	- Added support for Allied Telesis Websmart switches
		-  Version
		-  Hardware
	- Added support for Alliedware Plus version 2 OS devices
		-  Hardware
		-  Version
		-  Serial
	- Simplified polling to use snmp_get_multi_oid
	- Minor bug fixes

radlan.yaml
	- Updated device support for 8000S and 8000GS.
		-  Specified device object IDs
			-  Added an exclusion also for OIDs in allied.yaml
		-  Changed icon and group to alliedtelesis

radlan.inc.php
	- Updated support for devices identifying as radlan OS.

awplus.yaml
	- Added comment to remove the sysObjectID_except list.
	- Minor bug fixes

* added json test data to be used for unit test

* re-saved allied websmart test data
2018-01-20 20:30:53 -06:00
Tony MurrayandGitHub 494c29aefa Split save-test-data.php into two scripts, allow mass update (#8115)
* Add mass update to save-test-data.
Fail when snmpsim doesn't start and try to give a hint.

* Split save-test-data.php into two scripts

One for updating snmprec files.
One for updating db dump files.
2018-01-20 20:22:47 -06:00
Neil LathwoodandTony Murray 47cb01424f fix: Stop including disabled ports in traffic overview (#8107) 2018-01-19 08:04:01 -06:00
mattie47andNeil Lathwood 2b1d63c0ef Update Test-Units.md (#8093)
Fixed name of save-test-data.php script.
2018-01-18 21:12:43 +00:00
Tony MurrayandNeil Lathwood 88b4e31912 refactor: Refactored bgp-peers (#7972)
* bgp-peers update
Use IP parsing library more effectively.
Fix update issue
Include comware bgp-peers test data
deeper refactoring
Allow JunOS fallback to BGP4-MIB, some models only use that.
Add junos bgp4 data
Actually update all bpg data in the poller

* fix arista data. refactor some to prevent missing data from mucking things up

* refactor to use $oid_map for BGP4-MIB too

* A few comments to break up teh file a bit

* Junos bgp data an a quick revert for now.

* small cleanup

* fix ios bgp polling, add test data

* check the correct variable
2018-01-18 20:54:38 +00:00
FTBZandNeil Lathwood c80f9726c8 feature: Added new EER and Water Flow Rate sensors (#8104)
* Add new EER sensor

* remove bad RRD option

* add waterflow sensor

* add test data result

* added test json data
2018-01-18 20:50:19 +00:00
mattie47andNeil Lathwood 1da86aa229 device: Added Allied Telesis CPU info (#8111)
Added support to poll both standalone devices and VCStacked
device's CPU info
2018-01-18 20:15:09 +00:00
Misha KomarovskiyandNeil Lathwood 06c46765f2 api: Added API calls for routing and resources management (#8017)
* api: Added API call for VRF listing

Signed-off-by: Misha Komarovskiy <[email protected]>

* api: Added API call to retrive VRF by ID

Signed-off-by: Misha Komarovskiy <[email protected]>

* api: Change list_vrf permissions

Signed-off-by: Misha Komarovskiy <[email protected]>

* api: Added new api calls for routing and resources mgmt

* This commit includes list_cbgp, list_vlans,
list_ip_addresses, list_ip_networks and
get_network_ip_addresses calls

Signed-off-by: Misha Komarovskiy <[email protected]>

* fix: Correct indentation issue in get_ip_addresses

Signed-off-by: Misha Komarovskiy <[email protected]>

* api: Fix per device permissions and messages

Signed-off-by: Misha Komarovskiy <[email protected]>

* Fix identation issues

Signed-off-by: Misha Komarovskiy <[email protected]>

* api: Remove excessive result counters

Signed-off-by: Misha Komarovskiy <[email protected]>

* api: Add list_locations api call

* Get devices by location not very comfortable
without list all locations api call

Signed-off-by: Misha Komarovskiy <[email protected]>

* Spelling fix

Signed-off-by: Misha Komarovskiy <[email protected]>
2018-01-18 15:43:15 +00:00
Neil LathwoodandGitHub bdf02f1bf3 fix: Fixed re-use of variables within rrdtool def build (#8097) 2018-01-17 20:39:59 +00:00
Neil LathwoodandGitHub 1f03110b20 refactor: Moved routeros sensors to yaml + fixed divisors (#7946)
* move routeros fanspeed to yaml

* moved more routeros sensors to yaml

* reverted signal migration to yaml

* added routeros test data

* re-saved test data for routeros
2018-01-17 20:25:09 +00:00
Neil LathwoodandGitHub feec7da16c fix: Fixed bad queries in top device widget to stop listing all devices (#8105) 2018-01-17 16:38:48 +00:00
crcroandNeil Lathwood e81413ac61 webui: Added back devices sort by status (#8103)
* added back sort by status

* removed useless html style tags
2018-01-17 16:22:59 +00:00
Misha KomarovskiyandNeil Lathwood df731c165c refactor: Rename cisco-vrf to vrf and enable discovery for junos os (#8033)
* device: Enable cisco-vrf discovery for junos os

Signed-off-by: Misha Komarovskiy <[email protected]>

* refactor: Rename cisco-vrf module into vrf

Signed-off-by: Misha Komarovskiy <[email protected]>
2018-01-17 12:09:19 +00:00
Aldemir AkpinarandNeil Lathwood 76587065cc webui: New tab in "manage host dependencies" to clear all children of a parent (#8085)
* Add dependency info for api

* webui: new tab to clear children of a parent device

* Fix travis CI errors
2018-01-17 11:06:32 +00:00
Neil LathwoodandGitHub 86ff67c02e removed some unused files in mib dir (#8096) 2018-01-17 10:27:22 +00:00
ZmegolazandTony Murray 3740467858 Added settings validations. (#8037) 2018-01-16 22:21:21 -06:00
Paul HeinrichsandNeil Lathwood d4bd566d36 newdevice: Added Support for cambium PTP 300, 500, 600 and 800 (#7998)
* Add Support for cambium-ptp500

Added mibs for ptp500, ptp300

* ptp500 - Switch modulation to a state

* Update label on 500 to 500/300

300 and 500 use the same mibs

* Request changes

Added overhead graph's to all current ptp devices

* wrap text in quotes

* Fix discovery bug

* Ptp600 support

* PTP800 Support

* Fix ptp600 issues

* Remove meh copy and pasta

* Remove modulation from OS file

* Update value modifiers / typos

* +x rename-mibs.php

* Modify cambium mibs
2018-01-16 22:52:11 +00:00
barciellaandTony Murray afc6137146 Fixed documentation. This way autodiscovery with snmpv3 works (#8091) 2018-01-16 12:21:44 -06:00
Aldemir AkpinarandNeil Lathwood 788c0bd6fb api: Added dependency info for devices/device api calls (#8058)
* Add dependency info for api

* Fix travis CI error

* Changed to dbFetchColumn

* Add hostnames for parent devices as well as IDs

* Merged the queries as laf suggested
2018-01-14 20:43:55 +00:00
Neil LathwoodandTony Murray 7a76fa7216 fix: Fixed api response for failed device renames (#8081) 2018-01-12 22:26:57 -06:00
Tony MurrayandGitHub 44c1ee5f43 Fix tests... (#8080)
Don't exit when we can't add a device, fail :)
2018-01-12 15:24:12 -06:00
Neil LathwoodandTony Murray 8ec6f138bc Added arbos json data for tests (#8077) 2018-01-12 08:20:28 -06:00
Tony MurrayandNeil Lathwood 9356d527e7 Drop tests for unsupported php versions (#8070) 2018-01-12 14:11:04 +00:00
Adam BishopandNeil Lathwood 77e192208a device: Added support for ArbOS (#8055) 2018-01-12 09:02:24 +00:00
Martin ZatloukalandNeil Lathwood 9a0b06e4de device: Added processor and mempools for EdgeCore switch (#7850)
* Added cpu and mempolls EdgeCore switch

* Added cpu and mempolls EdgeCore switch

* Added cpu and mempolls EdgeCore switch

* Added cpu and mempolls EdgeCore switch

* Added cpu and mempolls EdgeCore switch

* Added cpu and mempolls EdgeCore switch

* Update edgecos.inc.php

* Add files via upload

* Create test.txt

* Add files via upload

* Delete test.txt

* Add files via upload
2018-01-11 22:26:04 +00:00
Tony MurrayandNeil Lathwood cabc0eb71d feature: Quick script to rename mibs to their proper names (#8068)
So I can stop re-writing it ;)
2018-01-11 22:19:13 +00:00
Neil LathwoodandTony Murray d26d142700 webui: Added Oxidized config validator (#7983)
* webui: Added Oxidized config validator

* final updates

* small changes like box height + indicate config is valid

* docs + small changes
2018-01-11 07:21:05 -06:00
Tony MurrayandGitHub e11e84f2ee snmp_walk remove multiple No more variables (#8050)
Optimize code so it is a faster when no more variables is not present.
Only saving 10s of microseconds, but better than an increase.
2018-01-10 15:30:19 -06:00
Tony MurrayandNeil Lathwood d515f5043e refactor: Move install to php53 branch if running an unsupported version of PHP (#8042)
* Move install to php53 branch if running an unsupport version of PHP

* Update validate

* Move PHP version check after update check.  This will prevent us from moving no update users to the php53 branch.

Hopefully if daily.php -f update fails it returns a non-zero and we can move them to the php53 branch still.

* Wiggle things around more.

* Also, send release installs to the php53 branch.

* Set notification error for old PHP version.
2018-01-10 14:40:58 +00:00
Peter McNabbandTony Murray 2fb8dd7904 fix: ldap-authorization should be considered external (#8047)
* fix: ldap-authorization should be considered external

When sso auth type was added (1c6b7a9), some code for getting a username
was moved into HttpAuthAuthorizer. LdapAuthorizationAuthorizer uses the
same process to get the username and needs to be updated as well.

* Use common implementation of getExternalUsername

Authorizers get the default implementation by setting AUTH_IS_EXTERNAL.
ADAuthorizationAuthorizer is another candidate.
2018-01-09 16:13:47 -06:00
Lee KeitelandNeil Lathwood 803e5419f3 Fixes #8064 - Use correct array key for uptime value (#8065) 2018-01-09 22:11:17 +00:00
crcroandNeil Lathwood 7e03905e63 webui: Small graylog cleanup (#8057) 2018-01-09 20:47:33 +00:00
crcroandNeil Lathwood d85a228d5b webui: Small eventlog cleanup (#8056)
* include status badge in first datetime col

* code formatting
2018-01-09 20:36:28 +00:00
Neil LathwoodandGitHub 6e134ac4e2 fix: Moved sysDescr snmp call to snmp_get_multi_oid() in core poller module (#8062) 2018-01-09 20:29:57 +00:00
Neil LathwoodandGitHub 0a7ec12fd9 fix: Fixed the default fping config + changed variable name (#8060)
* fix: Fixed the default fping config and added docs on caveats to changing timeout

* millisec -> interval

* removed retries config option, no needed

* Update Performance.md
2018-01-09 20:16:48 +00:00
Tony MurrayandGitHub b2a54dae3b Testing updates: module testing and collect only (#8063)
* Testing updates module testing and collect only

* cache clear no-longer needed.
2018-01-09 11:40:26 -06:00
Neil LathwoodandTony Murray ecbbc0e3e5 feature: Clear OS defs cache on poller/discovery debug (#8061) 2018-01-09 10:51:26 -06:00
Tony MurrayandNeil Lathwood dea1a26ee6 docs: Emphasize snmpsim is required for most tests (#8059) 2018-01-09 16:36:39 +00:00
Tony MurrayandNeil Lathwood 817639bd92 webui: Added OpenWRT icon (#8054)
fixes #7988
2018-01-09 16:36:16 +00:00
mattie47andTony Murray d20508153c Update Initial-Detection.md (#8053)
* Update Initial-Detection.md

While trying to add support for awplus under https://github.com/librenms/librenms/pull/7670, I was advised to delete the os_defs.cache file. 

This was hugely helpful, as I wasted a number of hours trying to figure out why I couldn't get any changes to the OS configs to work.

* Small updates
2018-01-09 09:33:09 -06:00
Andrew HolmesandTony Murray e3720235f4 Fixed UniFi AP hardware type and firmware version retrieval (#8005)
* Fixed UniFi AP hardware type and firmware version retrieval, enabled snmpbulkwalk

* Modified to pull from appropriate OID depending on sysObjectID

* Revert "Modified to pull from appropriate OID depending on sysObjectID" - typos in snmp_get_multi() commands

This reverts commit 5c2b6039f4.

* Revert "Revert "Modified to pull from appropriate OID depending on sysObjectID" - typos in snmp_get_multi() commands"

This reverts commit bccf301a8b, so I can submit everything in the one commit

* Revert "Modified to pull from appropriate OID depending on sysObjectID"

This reverts commit 5c2b6039f4 due to errors in code

* Revert to commit a8d380f and then apply changes to account for both old and new agent responses.

* Pull IEEE802dot11-MIB values via snmp_getnext() & sanity check returned results

* Fixed typo in previous commit - [0]s where they don't belong.

* Updated to take advantage of new snmp_getnext_multi() function

* Updated to account for changes to snmp_getnext_multi in pr#8052
2018-01-08 23:48:04 -06:00
Andrew HolmesandTony Murray 81fbe95039 Add snmp_getnext_multi() function (#8052)
* Added snmp_getnext_multi() function using syntax of existing snmp_get_multi() function

* Fixed typo in comment and spurious newline in file

* Removed return of index value

* Correct statistic
2018-01-08 23:39:58 -06:00
Alan GregoryandNeil Lathwood a7aaf11213 device: Added Hillstone StoneOs detection (#7982)
* Added support for stoneOs

* added Hillstone logo

* added snmp tests

* Updated logo and image

* Removed unnecessary sysdescr match.

* Fix format.

* Removed svg atributes

* Svg files reduced.

* Added test data.

* fixed sysObjectId -> sysObjectID

* Updated test json
2018-01-08 21:48:29 +00:00
crcroandTony Murray c14acfd410 webui: ports pages cleanup (#8040)
* ports pages cleanup

* removed useless html span tag
2018-01-08 13:54:21 -06:00
ZmegolazandTony Murray 2c9468979f Load device attributes before load_os() in device_by_id_cache(). (#8044) 2018-01-08 13:37:34 -06:00
ZmegolazandGitHub eac128aca8 Fix: Override -H for check_load service. Fixed backslash escaping. (#8020)
* Added check_load.inc.php.

* Combined load graphs. Removed extra backslashes from all graphs. Escaped backslash in mysql file.

* Added a note about local only service checks to the docs.
2018-01-08 09:35:15 +01:00
ZmegolazandTony Murray 4be175578b Fix: AirOS version and hardware. (#8034)
* Added more sub-oids for airos version and hardware.

* Rewrote hardware and software detection for airos to getnext.
2018-01-06 23:20:31 -06:00
Neil LathwoodandTony Murray 42e5819130 refactor: Updated discovery/poller to use numeric sysObjectID (#7922)
* refactor: Updated discovery to use a core module for sysDescr/sysObjectID use

* final update hopefully

* revert changes

* more changes + docs

* migrated poller to use numerical sysObjectID

* more updates for sysObjectID

* update any alert rules which might have enterprises. in

* moved schema file

* small updates

* updated getHostOS()

* scrut fixes

* updated sysObjectId -> sysObjectID

* updated sysObjectId -> sysObjectID

* updated remainder of sysObjectId -> sysObjectID

* another sysObjectId -> sysObjectID

* fixed secureplatform test data

* Fix tests: $device is not pulled from the database before polling
Also, update the db in the core discovery module.
2018-01-06 23:00:47 -06:00
Neil LathwoodandGitHub e2f122aac8 api: Added 404 fallback for bad / invalid calls (#7952) 2018-01-06 23:34:00 +00:00
crcroandNeil Lathwood 364b5749ef webui: Devices header cleanup (#8039) 2018-01-06 20:17:01 +00:00