18059 Commits

Author SHA1 Message Date
Tony Murray
9b4f8931a3 Windows detect newer versions (#12164)
* Fix Window hardware info flapping

* add description

* Missing features field

* Rename hardware method

* Updated test data
2020-09-30 01:01:43 +02:00
Kanok Chantrasmi
2f0c3f6772 Ubiquiti: detect US- switches (#12167)
To be able to detect Ubiquiti swtich that report model name starting with US  eg. US-16-150W
2020-09-30 00:55:42 +02:00
Tony Murray
536bb8ac34 Improve DNOS fallback os info (#12165)
Some net-snmp version return on one line, others on multiple.  Multiple regex works around this issue.
2020-09-28 12:51:47 -05:00
Birkir Freyr
cb7e191f31 Add panos (paloalto) to rancid_map (#12161)
Add panos (paloalto) to rancid_map
2020-09-28 17:57:54 +02:00
Tony Murray
2a515d308a Fix older ProCurve hardware/version (#12155) 2020-09-24 12:51:41 -05:00
craig-nokia
8381aa5b89 Adding basic support for Symertricom-Microsemi SSU2000 (#12145) 2020-09-24 17:06:01 +02:00
Negatifff
444b9544a0 new index in alert_log table (#12143)
* new index in alert_log table

* codefix1

* codefix2

* added second index

* codefix

* Apply suggestions from code review

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2020-09-24 17:05:21 +02:00
hugalafutro
87538c4c4a Update unbound.inc.php (#12152) 2020-09-24 14:44:34 +02:00
Tony Murray
caf1979529 fix gen_rancid.php permissions (#12153)
broken by #12144
2020-09-24 06:48:14 -05:00
Tony Murray
e944456943 Use lnms dev:check instead of pre-commit.php (#12149)
* Remove pre-commit.php references WIP

* remove pre-commit.php references
2020-09-24 12:32:03 +02:00
Tony Murray
93e43d09bc Update dev:check style to use php-cs-fixer (#12132)
* Update dev:check style to use php-cs-fixer

* dont override default paths

* Update .php_cs

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2020-09-23 20:54:00 -05:00
SourceDoctor
9ade71d20c API Calls to list Device Outages, calculated Availability (#12103)
* API Calls to list Device Outages, calculated Availability

* switch to eloquent

* style correction
2020-09-24 00:21:08 +02:00
SourceDoctor
f3f67e834f Update Application Docs for Unbound (#12151) 2020-09-23 23:18:06 +02:00
Dag Bakke
99309b917c Eaton mgeups fixes (#12150)
* Drop redundant sensors from eaton-mgeups. Prefer RFC1628-sensors. Keep stuff unique to the mge MIB.
Add snmprecs for two new variants.

* Rewrote these jsons files after the previous change. All tests passing.
2020-09-23 23:17:37 +02:00
Heath Barnhart
8a921567ba New OS: Ekinops (#12088)
* Initial push

* renamed mib files

* adding eki mgmt event trap handler

* Adding handler to config/snmptraps.php

* added slot state monitoring

* Ekinops port discovery script

* cleanup

* moved ifDescr change from discovery to poller

* simplified port poller script

* fixed poller array

* add Mgnt2TrapNMSEvent handler

* Adding nms alarm handler

* adding handler to snmptrap.php

* Updated handler names, exapanded event traphandler

* beginning tests and cleanup

* adding snmpsim data

* making tests

* finished trap tests

* fixed ekinops.yaml

* style and lint pass

* new snmpsim data and fixes

* adding correct snmpsim

* fixed test data

* Update ekinops.svg

* Update ekinops.svg

* Update ekinops.yaml

* new os discovery method

* remove unneeded precache line

* removing unneccesary pre-cache script

* styleci fixes

* few more style fixes

* trim whitespace in discovery

* remove unused mibs

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-09-23 18:23:57 +02:00
PipoCanaja
0e0e80c827 More eventlogs for snmptraps (#12112)
* Allow detailed trap display and inform user about snmptrapd misconfiguration

* Documentation update

* Documentation update

* Documentation update

* CodeClimate

* CodeClimate

* ChangeRequest PR

* Fix tests

* config_definitions

translation

doc

* styleci

* lnms translation generate after npm-install
2020-09-23 17:00:02 +02:00
Olen
aada69cd64 IRC Add more logging and debug info (#12140)
* Add more logging and debug info

* Code cleanup

* Code cleanup take two
2020-09-23 13:38:42 +02:00
Cliff Albert
a85b1e8bbd scripts/gen_rancid.php: Add support for H3C/Comware (#12144)
* allied, radlan, ciscowlc rancid router.db configuration support
allied and radlan represent allied telesis

* tab/spaces

* allied, radlan, ciscowlc rancid router.db configuration support
allied and radlan represent allied telesis

* * Added rancid support for H3C/Comware

* extraneous newline
2020-09-23 13:35:14 +02:00
Olen
0f272e342e IRC: Don't set nick on each tick (#12139)
* Trying harder to regain nick

* Code cleanup

* remove extra nickchange
2020-09-22 19:29:54 +02:00
n-lyakhovoy
2b07beca35 Mistake in ddmDiagnosisRXPower OID (#12114)
* Mistake in ddmDiagnosisRXPower OID

Mistake in ddmDiagnosisRXPower OID (its same as ddmDiagnosisBias)
Right OID is .1.3.6.1.4.1.40418.7.100.30.1.1.17

* Update snr.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-09-22 11:38:54 -05:00
Jellyfrog
41729d72eb Apply fixes from StyleCI (#12142) 2020-09-22 14:48:51 +02:00
Orsiris de Jong
9b9b26a007 Make sure 1st admin user creation does not fail with error 500 (#12119)
* Make sure 1st admin user creation does not fail with error 500

* Update MakeUserController.php

just init it to the default fail message

* Update MakeUserController.php

* just struggling with the github editor :P

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-09-22 07:41:52 -05:00
Jellyfrog
1d23421ba1 Set PHP 7.3 as minimum supported version (#12118)
Needed by Laravel 8
2020-09-22 07:41:26 -05:00
Olen
944d7c9ef9 List external commands in help. Allow reload of external commands (#12137) 2020-09-22 14:34:01 +02:00
Olen
4023baf899 Increase the read-buffer as 64 bytes can be a little small (#12136) 2020-09-22 14:32:08 +02:00
Olen
9abec91cfd Remove unused "irc_chan". Renamed to "irc_alert_chan" (#12135) 2020-09-22 14:31:39 +02:00
Olen
19aaf43605 Add some variables to the init of the class (#12134) 2020-09-22 14:30:54 +02:00
O Palivan
ac30c78039 TAIT - Chassis, Software and Serial detection (#12131)
* HW, Ver and Serial

* tests
2020-09-21 19:57:56 -05:00
Jellyfrog
bef67751a3 Add PHP CS Fixer (#12128)
* Add PHP CS Fixer

Based on https://gist.github.com/laravel-shift/cab527923ed2a109dda047b97d53c200

* Apply PHP CS
2020-09-21 19:52:01 -05:00
Tony Murray
c207f1dbcf Docs: ARP endpoint can search by MAC (#12129) 2020-09-21 19:22:04 -05:00
Hans Erasmus
9559b09f5e Update Oxidized docs (#12116) 2020-09-21 23:07:23 +02:00
Jellyfrog
2ee6a0afb0 Add StyleCI config (#12126) 2020-09-21 16:02:55 +02:00
Jellyfrog
29f45ca352 Apply fixes from StyleCI (#12124) 2020-09-21 15:59:34 +02:00
Jellyfrog
0d56bbd946 Apply fixes from StyleCI (#12123) 2020-09-21 15:51:53 +02:00
Jellyfrog
2fc3a21211 Apply fixes from StyleCI (#12121) 2020-09-21 15:43:38 +02:00
Jellyfrog
82f43cb98d Apply fixes from StyleCI (#12120) 2020-09-21 15:40:17 +02:00
Jellyfrog
77c531527c Apply fixes from StyleCI (#12117)
* Apply fixes from StyleCI

* Disable style check
2020-09-21 14:54:51 +02:00
Shao Yu-Lung (Allen)
8ec9183df5 Doc - Begins with / Ends with, SQL example is reversed (#12113) 2020-09-21 08:11:22 +02:00
SourceDoctor
65b294c7cb Fix to show Routing Count in Pagemenu Selector (#12111) 2020-09-20 01:24:53 +02:00
Konstantin V Bekreyev
509dc027f1 Update ru.json (#12109)
typos fixed
2020-09-19 17:41:01 +02:00
Tony Murray
39076131ae Bug - fixed incorrect test data (#12108) 2020-09-19 10:35:37 +02:00
Avinash Kumar
78fa539628 Icecast, Opensips and Voip monitor Application (#12070)
* Icecast added

* Opensips added

* Voip Monitor added

* Icecast documentation

Icecast corrections

* Opensips documentation added

Opensips corrections

* Voip monitor documentation added

Voip monitor corrections

* Icecast corrections

* Opensips corrections

* Voip monitor corrections

* test data added for icecast

* test data added for opensips
2020-09-18 16:49:20 +02:00
PipoCanaja
f32e91a46c TPLINK - Refactor HW discovery (#12105)
* refactor tplink hw and version

* tests
2020-09-18 16:43:51 +02:00
Tony Murray
941037e44e Convert OS discovery to new style (#12099)
* terra

* airos

* port cisco os polling
old wwan polling was broken and deprecated anyway

* enterasys

* Brother, a few changes

* AW Plus

* Fabos

* set expected test data

* 3com

* Adva FSP150

* advantech

* airos-af

* aix

* akcp

* allied

* allworx and missed mibs

* anyos

* fixup some zyxel shared stuffs
zywall graph polling

* aos

* apc

* apex

* apsoluteos

* fix copyrights

* arris

* arris

* aruba-instant

* ArubaOS

* Ascom

* asuswrt-merlin, ats

* audiocodes

* avocent

* avtech

* barracuda

* binox

* boss

* canonprinter

* cdata

* ceraos

* ciena-waveserver

* fix 3com

* fix airos

* fix brother yaml?

* fix aos more

* fix and improve apc

* fix arista test data

* yaml discovery (basic)

* cimc

* mib not used

* remove old discovery file

* ciscosat

* ciscosb fixes + improvements

* comware

* ctm

* cumulus

* cxr-ts

* cyberoam-utm

* cyberpower

* dahua-nvr

* dasan-nos

* datadomain

* dcn-software and fallback oids

* dd-wrt

* dell-laser

* d*

* e* and location

* forti, post processing, oid coalescing

* Freebsd array of sysDescr regex

* finish f*

* g*

* h*

* i* WIP

* i*

* Junos

* j*

* k*

* unix refactor previous to yaml more
inject $device

* fixes

* fixes

* l*

* m*

* n* ability to set other fields in regex
tnmsne polling to eloquent

* o*

* p*

* q* + bonus calix

* r*

* s* WIP

* s*

* t*

* u*

* v*
rework vrp to yaml (hybrid)

* w*

* x*

* z*

* a* easy no-data

* fixes

* style fixes

* missed ApexPlus

* fix signature

* Add missing location data

* rename getDevice functions

* add new cisco ftd data

* update docs

* revert sill snmp format

* fix snmp options

* update for new smartax test data

* rebase dsm

* fix voss
2020-09-18 15:12:07 +02:00
louis-oui
d2d1e18925 Fix editing schedule maintenance (#12079) 2020-09-18 01:42:13 -05:00
pobradovic08
736169d4e1 WebUI: Fixed URL of detailed graphs for jitter SLA probe (#11984)
* Fix single SLA page

* Update slas.inc.php

blank lines at the start and end of control structure
2020-09-18 00:58:20 -05:00
TheGreatDoc
935f9b924d Synology DSM: Moved to yaml discovery (#11962)
* Synology DSM: Moved to yaml discovery

* Fix styleci issues + sensors indexes to match php ones

* Fixed test

* Tests on DS214se

Tests on DS214se

* remove ds214

* Update dsm_ds916.json

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2020-09-18 00:51:02 -05:00
Negatifff
072ede4ea3 Speedup vlans list in device VLANS tab (#11805)
* init

* spaces and commas fix
2020-09-18 00:43:31 -05:00
Magnus Larsen
22ce3bc743 Added support for OS detection from NXOS and UCS (#11722)
* Added support for OS detection from NXOS and UCS

* Changed to SysObjectID instead of Hardware

* Move to YAML

* Rename test cases from nxos to ucos

* Update ucos_2.json

* Rename nxos.yaml to ucos.yaml

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-09-18 00:37:35 -05:00
Adam Bishop
bbdb1a2a5d Rewrite smokeping script to be an lnms command (#11585)
* Rewrite smokeping script to be an lnms command

* Add a default number of probes for smokeping

* Formatting fixes

* Refactor to simplify a couple of methods

* Fix a name collision when using more than 60 threads

* Simplify

* First pass at documentation

A few climate fixes too.

I'm a little dubious about the + LibreNMS fix - it could be included
in /etc/smokeping/config if it is really needed, but it sounds like
(looking at git blame) it's needed for if the script generates a broken
configuration file.

I'm thinking we should just not generate broken config.

* Improve testability and add some tests

* Load laravel to make translations available

* Second pass at documentation

* Fix brace

* Extend the device factory to include the type

Also adds a device group fake I created before I realised I didn't need it

* Mimic gen_smokeping.php a little more closely

* Update tests to properly verify old and new behaviour against each other

* Replace gen_smokeping with a wrapper

* Don't double whitespace

Render does this automatically.
Explicitly order by hostname too.

* Make faker less likely to generate duplicates

I tried adding a unique constraint here, but it didn't have the
intended effect.

Extending the hostname like this seems to work fine - I tried
generating 10 million hosts and got no duplicates, compared to
duplicates appearing with as few as 100 hosts without this
 change.

A true fix would be to add an 'fqdn' fake upstream.

* Make the tests more robust

* Assorted bug fixes

* Style corrections

* Handle 'generic' devices

* Fix an issue that came up during rebase

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-09-18 00:04:54 -05:00