396 Commits

Author SHA1 Message Date
Neil Lathwood
3e94077a71 Revert "Update RFC1123 Hostname Check" (#7577)
* Revert "Revert "feature: Allow snmpget in os discovery yaml (#7558)" (#7576)"

This reverts commit 426916dbe4.

* Revert "fix: lldp find_port_id finds not the most correct port (#7564)"

This reverts commit 7e05fff615.

* Revert "fix: Update RFC1123 Hostname Check (#7572)"

This reverts commit ebcfa45a93.
2017-10-29 20:05:59 +00:00
Tony Murray
426916dbe4 Revert "feature: Allow snmpget in os discovery yaml (#7558)" (#7576)
This reverts commits:
193db02475
b73c4e9d6e
a93bb6635d
2017-10-29 14:04:26 -05:00
Parth Laxmikant Kolekar
ebcfa45a93 fix: Update RFC1123 Hostname Check (#7572)
* Update RFC1123 Hostname Check

The regex was wrong. It failed to match devices like `cisco-3750x` even though it is a valid hostname. 
I picked this regex from the RFC1123 documentation, and updated it.

* Update CommonFunctionsTest.php

Update tests

* Updated to allow domains ending with a dot
2017-10-29 11:12:32 +01:00
Tony Murray
a93bb6635d refactor: Use one snmpget during os discovery (#7566)
Use only one snmpget to fetch sysObjectId and sysDescr
fix multiline data in snmp_get_multi_oid()
add snmp_get_multi_oid() to mock.snmp.inc.php
2017-10-28 11:53:05 +01:00
Zmegolaz
f8d7ccfe0d feature: Support for up/down detection of ping only devices.
* Added support for ping only devices.

* Renamed sql-schema/206 to 207.

* Discovery tried to detect the OS when it shouldn't.

* Updated db_schema.yaml

* Added ping icon.

* Don't show unused graphs and tabs when SNMP is disabled.

* Allow the user to specify OS of ping only devices.

* Removing custom OS now changes it to 'ping'.

* Removed unnecessary use of mres().

* UI select box for SNMP enable/disable.

* Hide device_ping_perf if ping is disable on device.

* Fixed SNMP settings update status messages.

* Added functionality to add ping only devices via the web ui.

* Added ping only option to addhost.php

* Added ping only support to snmp-scan.py

* Moved sql 208 to 211

* Fixed scrutinizer issues.

* Fixed broken ossearch.

* Added ping only support to the API.

* Updated API doc.

* Added (optional) to OS and hardware description. Hid Port Settings, Applications, Modules, Storage, Processors, Memory and Components from the edit menu

* Style fix.

* Updated ping icon.

* clean() instead of mres(). More escaping. Better help in snmp-scan.py and addhost.php

* Fixed scrutinizer issue.

* Always try SNMP in snmp-scan.py, new option for it in addhost.php. Slice instead of chunk in ajax_ossuggest.php. Other minor style changes.

* Updated sql modifications to insert the new column in the same place as in db_schema.yaml.
2017-10-27 22:59:25 -05:00
tomarch
db3d9dc4ab newdevice: Added detection for proxmox devices (#7543)
* initial proxmox detection

* minor changes

* fixed detection

* change sysdescr
2017-10-27 21:14:26 +01:00
Tony Murray
8a051aa295 fix: Fix a couple of OS cache invalidation issues (#7567)
* fix: fix a couple of OS cache invalidation issues
Fixes issues where we might be using outdated os definitions.

* use Config and fix style issue

* only pull in settings from config.php (otherwise will possibly contain populated os config)
2017-10-27 21:03:58 +01:00
Neil Lathwood
65b0c8bfe4 newdevice: Updated Cisco WAP detection and merged in ciscosmblinux OS (#7447)
* newdevice: Updated Cisco WAP detection and merged in ciscosmblinux OS

* Update ciscowap.yaml
2017-10-27 19:45:04 +01:00
Tony Murray
193db02475 feature: Allow snmpget in os discovery yaml (#7558)
* feature: Allow snmpget in os discovery yaml
Convert all remaining os except airos.

Affected OS: asuswrt-merlin, ddnons, dsm, extrahop, huaweiups, ibmtl, pcoweb, pktj, qnap, remoteeye4, sentry3, sentry4, tomato

There should be not change in detection.

* Fix, asuswrt-merlin and tomato with snmpsim.  May not have been an issue with actual devices because of -Oa leading " was a bit odd.

* missed file
2017-10-26 20:48:33 +01:00
Aldemir Akpinar
f18f5eb3b9 newdevice: Fixed Moxa cpu polling, add support for EDS-G508E and power (#7477)
* Fix Moxa cpu polling problem, also add support for EDS-G508E, and power graphs

* Dynamic discovery support for EDS-G508E-T and IKS-6726A-2GTXSFP-T

* fixes as requested

* Added another snmp_cache_multi_oid and fixed a typo

* Revert back to old file name
2017-10-26 11:41:50 +01:00
Tony Murray
51ba934e11 feature: Added web validation (#7474)
* refactor: convert validations to modules to prep for gui integration

* accidentally dropped, schema update

* fix accidental output to webui

* mention discovery-wrapper.py and re-arrange.

* refine some fix statements

* rename the Config validation group to Configuration.

* fix some scrutinizer issues
remove as many local functions from validator.php as possible
move extensions from pre-check
remove duplicate timezone check
looks like there is some db schema differences between mariadb 10.1 and 10.2, investigating

* mariadb version diff take2

* Check schema version first for database.
Remove stop to go back to command line for install docs.
Add helpful link when there is no devices added to /addhost

* fix incorrect validation for empty string defaults

* Fix style

* Add additional file permissions checks

* catch exception and fail for invalid timezone
Change visuals a bit.

* add php version warning

* fix space
2017-10-26 07:56:09 +01:00
Chris A. Evans
a6ad9b86be newdevice: Added Mitel Standard Linux OS detection (#7513)
* Added Mitel Standard Linux OS Support

* removed duplicate svg, added snmprec test file, un-enable vmware discovery module

* msl os definition/polling improvements, mitel mib_dir creation
2017-10-25 16:38:53 +01:00
Alan Gregory
50413ff9ae newdevice: Added support for logmaster(ups vendors) devices (#7524)
* added logmaster icon

* added LogMaster Ups Mibs

* Added battery temperature

* Added LogMaster Os discovery

* Added PPC UPS top level mib

* Added more sensors

* Added test for Os

* Added log image

* Disable unused modules to improve polling

* Changed discovery to match all second level.

* Fix logo size to 32x32

* Remove duplicated mib.

* Removed .mib extension

* Fix mib name.

* Added rfc1628 compatibility.

* Removed duplicated sensors due to rfc support

* Added sensor that differs from rfc 1628.
2017-10-24 14:37:36 +01:00
Alan Gregory
a99e6526b3 newdevice: Added support for new Fiberhome OLT Models (#7499)
* Added suporte for new medium model 5506-04

* Added tests for AN5516-04B

* Added tests for AN5516-04

* Added sysObjectID test for olts.

* Commit to trigger travis-ci

* Update fiberhome.yaml
2017-10-20 16:50:16 +01:00
Paul Heinrichs
f2c4563c85 newdevice: Added initial detection for netmodule NB1600 (#7514) 2017-10-20 16:41:32 +01:00
Tony Murray
186ff42ef8 newdevice: Updated Unifi AC HD detection (#7516)
* fix Unifi AC HD detection
dot11manufacturerName.5 doesn't exist, only .30-.33

* add unit test
2017-10-19 08:07:00 +01:00
Martin Zatloukal
6e379bfbbd newdevice: Added support for Alcoma wireless devices (#7476)
* New os Alcoma

* New os Alcoma

* Update AlcomaAlmp.php
2017-10-17 08:57:31 +01:00
tomarch
1318e5871c newdevice: Added support for Eaton ATS devices (#7448)
* eaton-ats: add definition, voltage, frequency and state

* eaton-ats: missing snmprec file

* fix some syntax error

* fix some syntax error, again

* exclude eaton-ats from eaton-mgeups definition

* change eaton-ats definition

* move state and output voltage to yaml syntax

* Update eaton-mgeups.yaml
2017-10-15 21:06:11 +01:00
Søren Rosiak
81667b9e20 newdevice: Updated Zhone MXK detection (#7488)
* newdevice: Improve Zhone MXK Discovery

* Fix test name
2017-10-15 21:02:39 +01:00
Martin Zatloukal
f48cff0f1b newdevice: Added support for Racom RAy devices (#7466) 2017-10-15 19:31:44 +01:00
Neil Lathwood
a2de3ff681 newdevice: Added detection for SmartOptics T-Series devices (#7433) 2017-10-14 14:45:57 +02:00
Neil Lathwood
6b44ac784a newdevice: Added support for Huawei OceanStor devices 2017-10-12 19:55:25 +02:00
sfini
3381b401f9 newdevice: Added Support for ApsoluteOS / Defense Pro Hw (#7440)
* Add Support for ApsoluteOS  / Defense Pro Hw

* apsoluteos.snmprec

* Create apsoluteos.yaml

* Create apsoluteos.inc.php

* Create apsoluteos.inc.php

* Create test

* mibs

* Delete test

* Update apsoluteos.yaml

* Update apsoluteos.inc.php

* Update apsoluteos.inc.php

* Create radwaremib.txt

* Update apsoluteos.yaml

* Update apsoluteos.yaml

* Delete BGP4-MIB.mib

* delete mib dir

delete

* CHANGE NAME
2017-10-10 14:18:47 +01:00
Tony Murray
a2b9342f05 fix: improve accuracy of is_valid_hostname() (#7435)
* fix: improve accuracy of is_valid_hostname()
fixes discovery code attempting to add discover invalid dns names
the old code allowed some invalid hostnames, this is more thorough
add tests

* fix merge error
2017-10-05 16:04:17 -05:00
Frank Petrilli
b89ed26852 newdevice: Added additional detection for Dell Equallogic devices
* Add support for alternate Equallogic SNMP sysObjectId

* Widen scope, add unit test

* Revert "Widen scope, add unit test"

This reverts commit 9486f06dd1.

* Revert erroneous commit, include changes

* Made changes requested by @laf
2017-10-05 19:53:13 +01:00
tomarch
931bfce011 newdevice: Added detection for technicolor TG650S and TG670S (#7420)
* update zywall.yaml ; use sysDescr_regex_except

* Cleanup technicolor

* newdevice: technicolor TG650S and TG670S

* Update technicolor.svg

* add technicolor.svg compressed

* Update tgos.yaml
2017-10-04 21:16:00 +01:00
tomarch
a1d782613b device: Added additional zywall-usg detection (#7405)
* device: more zywall-usg support
move and add snmpsim files

* add snmpsim files

* add again snmpsim files

* Update zywall.yaml
2017-10-03 21:38:40 +01:00
Aldemir Akpinar
b4af9197ba newdevice: Added basic detection for hanwha techwin devices (#7397)
* Basic hanwha techwin support

* Changed os type to iPolis

* Changed file names to ipolis rather than the vendor name

* oid fixes
2017-10-01 19:19:46 +01:00
Tom Sealey
c07daa325b newdevice: Added basic os for EricssonLG ES switches (#7289)
* added basic os for EricssonLG ES switches

* changed names

* tidied up some more

* renamed test files

* fixed typo

* removed _ from names

* fixed os names

* changes requested by @laf

* fixed unit test for ucp
2017-09-25 10:01:35 +01:00
Tony Murray
6ea6218f47 refactor: rewrite is_valid_port() (#7360)
* refactor: speed up is_valid_port()
Convert is_valid_port to Config
Several Config optimizations
Update documentation

* fix getCombined() when os key is not set, but global is.
Add more tests
2017-09-21 18:02:01 +01:00
FragmentedPacket
c20ffec40c newdevice: Updated Engenius OS detection (#7365)
* fix: Engenius OS discovery

bandroidx was having issues with their Engenius AP being discovered as a wireless device, instead it was just showing up as 'generic'. Adding OID .1.3.6.1.4.1.14125 resolved their issue.

* Update engenius.yaml

* Create engenius_3.snmprec
2017-09-19 21:46:22 +01:00
Neil Lathwood
838f91a18a newdevice: Added detection for DPS Telecom NetGuardian (#7326)
* newdevice: Added detection for DPS Telecom NetGuardian
2017-09-18 20:29:27 +02:00
Neil Lathwood
2115a1c6d1 newdevice: Added support for Alpha FXM UPS devices (#7324)
* newdevice: Added support for Alpha FXM UPS devices
2017-09-18 20:24:53 +02:00
Søren Rosiak
7e601c31ed Merge pull request #7354 from laf/newdevice/issue-7310
newdevice: Added detection for IgniteNet FusionSwitch devices
2017-09-18 17:37:00 +02:00
laf
802cd703bc newdevice: Added detection for IgniteNet FusionSwitch devices 2017-09-17 22:31:23 +01:00
Neil Lathwood
aef79535f4 newdevice: Added support for A10 ACOS devices (#7327)
* newdevice: Added support for A10 ACOS devices
2017-09-17 21:33:09 +02:00
laf
82f6eb096e newdevice: Added more detection for Cisco SB devices 2017-09-17 21:35:36 +01:00
Neil Lathwood
973b1181e3 newdevice: Added additional detection for Cisco small business switches (#7317)
* newdevice: Added additional detection for Cisco small business switches

* updated test unit
2017-09-13 21:25:49 -05:00
Neil Lathwood
b3567041dd newdevice: Added support for SmartOptics M-Series (#7314)
* newdevice: Added support for SmartOptics M-Series

* added os polling file
2017-09-13 21:12:56 -05:00
Tony Murray
98786c0ea7 feature: Allow ignore_mount, ignore_mount_string, ignore_mount_regex per OS (#7304)
* feature: Allow ignore_mount, ignore_mount_string, ignore_mount_regex at OS level

* Change the storage settings to override global instead of merge.
Add documentation
2017-09-13 19:43:21 +01:00
Neil Lathwood
e0040b2831 newdevice: Added support for Toshiba RemotEye4 devices (#7312)
* newdevice: Added support for Toshiba RemotEye4 devices

* small updates thanks to kate

* Update new-os.php

* Update new-os.php
2017-09-12 22:27:06 -05:00
Neil Lathwood
58193e16a3 newdevice: Added additional Quanta detection (#7316) 2017-09-12 20:15:50 -05:00
Neil Lathwood
1e7e421cd7 newdevice: Added additional detection for Calix devices (#7325) 2017-09-12 19:58:59 -05:00
Neil Lathwood
9cafcb6280 newdevice: Added detection for Himoinsa Gensets (#7295)
* newdevice: Added detection for Himoinsa Gensets

* Update himoinsa.svg
2017-09-10 13:44:05 -05:00
jayceeemperador
dbbb9ca7fa newdevice: Added detection for ServerChecks (#7308)
* Add files via upload

Serverscheck logo

* Delete serverscheck.svg

* Add files via upload

* Delete serverscheck.png

* Add OS discovery for ServerChecks #7284

* Delete servercheck.svg

* newdevice: Add OS discovery for ServerChecks (#7284)

* Create serverscheck.yaml

* Delete serverscheck.png

* Change png to 32x32 size

* Add OS discovery for ServerChecks #7308

Added mib directory for serverscheck

* Create SERVERSCHECK-MIB

* Add OS discovery for ServerChecks #7308

Added snmprec file for serverscheck
2017-09-10 19:14:34 +01:00
Neil Lathwood
455c72156d newdevice: Added support for Saf Integra Access points (#7292)
* newdevice: Added support for Saf Integra Access points

* Split SAF Integra models out

* added polling files

* Update saf-integra-b.yaml

* Update saf-integra-w.yaml
2017-09-08 15:22:03 -05:00
Tony Murray
ec72eb2960 newdevice: Added basic Open-E detection (#7301)
ingore_mount_string will be activated with separate PR
2017-09-08 05:17:40 +01:00
Tony Murray
66f9411adc newdevice: Added support for Mimosa A5 (#7287)
* device: add support for Mimosa A5
Frequency and Tx/Rx Power

Unfortunately, we would have to walk the client table to get any client stats such as count.

* remove sysdescr after checking stats

* Forgot the mib new files
2017-09-07 09:29:03 +01:00
Tony Murray
7b262a6851 refactor: Improve yaml state discovery (#7221)
* feature: Improve yaml state discovery
Handle state values that are returned as strings instead of int
Synchronize state values for existing state translations so we can change them without creating a new translation and losing historical data
More extensive/verbose yaml discovery phpunit tests
dbBulkInsert, use the first entry instead of requiring the first entry to be at index 0

* Update sensor state documentation
re-order values for better readability
remove os check
Use snmpwalk_group since it is more flexible

* Add some more debug output in dynamic discovery
2017-09-03 19:58:39 +01:00
Paul Heinrichs
6914666004 newdevice: Added support for DragonWave Horizon (#7264)
* Add Dragonwave Horizon Support

* Add snmprec and fix style issues

* Update logo and discovery oid

* Update horizon.yaml
2017-08-30 23:13:31 +01:00