Commit Graph

17898 Commits

Author SHA1 Message Date
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
Cirno the Strongest
5e63c34d19
Fix billing showing estimated transfer based on total of 1 days if billing day is first (#10445) 2020-09-17 23:21:25 -05:00
Tony Murray
b9f4b221f7
Include ifName for bad_ifXEntry OS (#12104)
* ifEntry does not include ifName

* Walk ifName for bad_ifXEntry os
2020-09-17 23:00:31 -05:00
kvedder-amplex
2a045419e2
Add NoBulk Option because Sitemonitor's Do Not Support Bulk (#12100)
Co-authored-by: Ken Vedder <kenneth.vedder@gmail.com>
2020-09-17 19:42:05 -05:00
O Palivan
d559ffa9e6
Device support for Tait Infra93 (#12093)
* Mibs

* Tait MIB support for TB9300

* initial

* typo

* Tait suite

* Tait suite

* Tests

* spaces

* yaml def syntax

* spaces

* RSSI name

* spaces
2020-09-17 13:24:53 +02:00
q7joey
700b2cf5aa
Add Sensatronic E4-16 support (#12083)
* Update sensatronics-em1.yaml

sysObjectID wasn't specific enough.

* Create sensatronics-ittm.yaml

Add support for 4/16 channel units

* Create sensatronics-ittm.yaml

Add support for 4/16 channel units

* Change name to be specific to ITTM

* Create sensatronics-ittm.snmprec

* Create sensatronics-ittm.json
2020-09-17 13:23:43 +02:00
Denny Friebe
cba51763cc
Fix incorrect eth0 status for Ubiquiti AirFiber 5XHD (#12025)
* UBNT AF LTU: Fix incorrect eth0 status during discovery

* UBNT AF LTU: Update test data

* UBNT AF LTU: Remove eth0 if afLTUethConnected is not set

* UBNT AF LTU: Use require instead of require_once
2020-09-16 22:48:32 +02:00
Anthony Brandelli
9ab4f3351f
Add detection of Cisco ftd 4115 (#12092)
* Add detection of Cisco ftd 4115

* Create ftd_4115.json

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2020-09-16 12:42:30 +02:00
Damon Reed
e0a076455e
Fix CiHelper function checkPythonExec to use 'pip3 install --user' and improve error message (#12097)
* Fix pip3 install function to use --user

* Update error message to reflect somethign closer to reality.
2020-09-16 00:30:50 +02:00
tarik
2dfb37548d
adding serial number discovery to aruba os poller (#12053) 2020-09-15 22:29:15 +02:00
crcro
9026cf54c0
osnexus quantastor initial support (#12045)
* initial release

* fixes

* cleaner snmprec

* updates

* remove legacy files

* updates

* fixes

* cleanup

* test data ... again

* yaml fix and test data

* tests update

* polling temps

* remove unused line

* - hdd temp fix

- tests without ignores
2020-09-13 23:45:11 +02:00
craig-nokia
dda6377424
Add basic support for Emerson Netsure Controllers (#12091) 2020-09-13 23:03:35 +02:00