Commit Graph

1500 Commits

Author SHA1 Message Date
paulierco
709d1b6f56
Add planet-pdu os device (#12441)
* Planet-PDU OS

* fix sysdescr

* fix sysdescr2

* fix sysdescr2
2021-01-18 16:11:53 -06:00
Jezekus
41f1436c15
Add WTI POWER os device (#12440)
* Add WTI-POWER-MIB for support WTI VMR, NPS, RPC and NBB Series Power Products - available from https://ftp.wti.com/download/files/WTI-POWER-MIB.txt

* Created wti-power os definition together with discovery files.

* Add test data for wti-power os, created from available VMR-8HD20 device.

* Fixed typo in num_oid

* Change os in definition, to match filename
2021-01-17 23:55:42 +01:00
zerrac
24604dd0e2
APC ePDU (#12428)
* Update apc powernet mib

* add definitions for APC ePDUs

* add test data

* add descr

* fix os definitions

* add json data

* matcj test data

* fix test data

Co-authored-by: root@webu.coop <root@webu.coop>
Co-authored-by: ccarrez <ccarrez@ccarrez.webu.lan>
2021-01-16 01:48:51 +01:00
Tony Murray
ed41e6eedc
Fix Gaia HA sensors (#12429)
* Fix Gaia HA sensors

* remove ospf again
2021-01-11 22:09:16 +01:00
lazyb0nes
db73b8fade
Check Point: Added HA state support (#12382)
* Added HA state support

* Adding tests for Checkpoint 15600

* Removing trailing white-space in gaia.yaml

* Updating old gaia config files

* Updating the non-variant json of gaia

* Updating git repo directly from a librenms docker container

* Overwriting the original gaia snmprec file

* Once more, with database. Praying to the god of unit tests.

* Removed the new tests

* Trying to re-add 15600

* Re-trying with a fresh snmprec file

* Trying new snmp rec file for 15600

* Remove ospf data

* Update gaia.yaml

Added single quotes

* Update gaia.yaml

* Updating the test after the sensor name change

Co-authored-by: Patrik Jonsson <patrik.jonsson@gmail.com>
Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-01-11 00:22:34 +01:00
Jezekus
80ac2390c0
Fix for Mikrotik SwOS discovery (#12426)
* Update Mikrotik MIBs to latest revision 202010080000Z

* Fix of Mikrotik SwOS definition - missing items removal. Added SwOS discovery file to add supported items.

* Add test data generated from CSS106-1G-4P-1S

* Fix of wrongly mixed old and new test data. Fresh export.
2021-01-10 23:56:17 +01:00
Kevin Zink
e26fb4669a
Change raspberry_pi_sensors state (#12390)
* Change raspberry_pi_sensors state

I think it is great that the codecs of a Raspberry are queried, but a non-existent codec license is not a critical sensor value. What do you think?

* Update linux_raspberrypi.json

* Update linux_raspberrypi.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-01-08 21:16:37 -06:00
CrazyMax
03d562f587
Remove Travis support (#12416)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-01-04 21:17:55 -06:00
paulierco
575ce64f77
New device OS: McafeeWebGateway (#12418)
* McafeeWebGateway OS

* Update mcafeewebgateway.svg

* Update mcafeewebgateway.svg

* Update mcafeewebgateway.svg

* Update mcafeewebgateway.svg

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-01-04 23:04:07 +01:00
Vitali Kari
9126e0f00a
new device os Raisecom Router OS (ROAP) (#12361)
* new device os Raisecom Router OS (ROAP)
tried to add that as existing raisecom os but ended in new os, because they use a
new MIB base for Router OS and newer devices.

* add sensors
2021-01-04 00:39:35 +01:00
Ramūnas Lukoševičius
10eb7b2c2a
Added support for Motorola and Thomson DOCSIS Cable Modems. (#12386)
* Added tv_signal sensor class (TV signal in dBmV (decibells to millivolt))

* Added OS motorola-cm (Motorolla DOCSIS Cable Modem)

* Added OS thomson-cm (Thomson DOCSIS Cable Modem)
2021-01-03 22:35:32 +01:00
Martijn Schmidt
503b507629
Schleifenbauer model DPM27/E (#12414)
* Update from PDU_mib_244 to PDU_mib_262

* Add a new sysObjectID for the OS detection of schleifenbauer devices

* Update snmpsim data, no changes in save-test-data.php output.

* Revert "Update snmpsim data, no changes in save-test-data.php output."

This reverts commit ac7c0d5610.

* snmpsim + test data for OS schleifenbauer variant dpm27e
2021-01-03 21:14:33 +01:00
paulierco
95603e494a
Alcatel-Lucent support part2 (#12369)
* Alcatel-Lucent support part2

* fixing low temp for aos6, mem for aos6 and linkagg for both

* style for aos6.yaml

* style2 for aos6.yaml

* fix style

* fix style

* add test data
2021-01-03 18:57:47 +01:00
Torch
187165e464
Added IES 5206 and 5212 test files (#12373)
Added IES 5206 and 5212 to supported sysObjectIDs
2021-01-03 18:46:45 +01:00
CrazyMax
4126dddf73
GitHub Actions dev:check ci (#12392)
* Refactor test for GitHub Actions

* Checkout pull request HEAD commit instead of merge commit

* Fetch changed files from API instead of git

* HEAD commit

* Origin

* Fix env

* force full unit checks on gh actions change

* Fix DB conn

* Update test.yml

* Also set port in PDO connection

* Exit with correct exit code

* Update CiHelper.php

* Update test.yml

* Update CiHelper.php

* Update Proc.php

* Cleanups

Remove extra unit test run on php 7.4
Add names that will hopefully show in github.
Remove redundant DB env variables.

* Fix

Shorter names
and DB_TEST env is required

* Change command for information purposes

Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
Co-authored-by: Tony Murray <murraytony@gmail.com>
Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-01-03 00:54:01 -06:00
Lucas Dousse
2a98076515
New Logo Opnsense (#12359)
* Logo with best definition

* png to svg

* png to svg

* Change filename in test

* minify svg
2020-11-26 21:49:02 +01:00
Torch
bb7e34d8af
Added Eltek SmartPack2 Syst. (#12352) 2020-11-26 00:11:11 -06:00
Tony Murray
5d3e06ee69
Change mempools summary graph to show values v2 (#12355)
* Change mempools summary graph to show values
put swap on the negative axis
fix swap classification

* fix whitespace

* fix incorrect class
fix rrd rename logic

* Style

* missed one

* observe with the correct class
2020-11-25 10:31:24 -06:00
Tony Murray
23e8544913
Revert "Change mempools summary graph to show values (#12349)" (#12354)
This reverts commit 7a027f8467.
2020-11-25 10:10:01 -06:00
Tony Murray
7a027f8467
Change mempools summary graph to show values (#12349)
* Change mempools summary graph to show values
put swap on the negative axis
fix swap classification

* fix whitespace

* fix incorrect class
fix rrd rename logic

* Style

* missed one
2020-11-25 10:06:20 -06:00
Tony Murray
f2f169ae78
Modernize mempools (#12282)
* mempools to modern module
quick hacky hrstorage port

* port ucd-snmp-mib to Mempools

* Populate DB for ucd
Prep for yaml

* initial yaml attempt

* more complex conversions
fixes to YamlDiscovery, make leading $ optional and allow mib::oid format

* walk full tables and skip values
normalize percentages above 100

* handle precent only ones (specify total as 100)

* Move default polling out of YamlMempoolsDiscovery

* fixes

* Update test data hrstorage should be correct.

* perc_warn for hrstorage

* Host Resources, record buffer, cached, and shared

* Host Resources is always better, don't do both HR and UCD

* fix unix, include warning levels

* variable size

* consolidate skip_values

* define mempools schema

* number instead of integer

* more schema refactor

* one more skip_values reference

* throw error for invalid oid translation
aos6

* a*  and Cisco

* updated test data

* update almost all hrstorage data files

* b*

* c* with test data
use standard cache for hrStorage

* use cache for storage module too

* hand bsnmp properly

* bdcom

* exclude total oid from yaml so it is not polled
May add a way to ignore this behavior and poll it, but I don't know if that is needed.

* automatically handle percent only values

* ciscowlc

* only poll used or free if we have used, free, and total.

* fix skipping

* the dlinkoning
fix find value when value "name" is numeric

* support numeric oids

* dnos/ftos attempt

* I guess we can't filter on total > 0

* edgecos

* e*

* f WIP

* f*

* gwd (aka g*)

* h* + procurve

* i*

* j*

* m*

* support 0% used memory (however unlikely)

* n*

* CISCO-PROCESS-MIB memory, share cache with processors module

* ignore mempools with invalid total

* p*

* quanta

* r*
fix raisecom mibs terribly broken

* s-z

* style fixes

* Move VRP back to PHP and make it actually work

* fix zynos

* update schema

* Update Cisco processor data for description bug fixes

* fix comware processors

* comware mempools with memory size
default precision to 1

* sophos-xg updated data

* hrstorage use ram size for buffers, cache, and shared

* Show memory available instead of free in device overview

* UCD, use same rrd format, store available instead of free in the db.

* Calculate availability for HOST-RESOURCES-MIB

* Convert UCD to standard polling

* rename old rrd files

* initial graph work

* graph WIP

* Graph looking decent

* Graph looking decent for hr

* remove old ucd_graph code

* handle availability mempool
more graph cleanup

* color adjustments

* remove accidental free calculation

* Update test data and fix corner cases

* fis pfsense

* update schema

* add default value for mempool_class

* fix whitespace

* update schema

* update schema correctly

* one more time

* fortigate_1500d-sensors missing oids

* Update docs.

* fix indent

* add implements MempoolsDiscovery explicitly to OS

* remove ucd_memory graph references
remove unused device_memory graph

* remove unused functions

* set devices with mempools to rediscover to prevent/minimize gaps

* use a subquery

* add overview graph

* port health mempools table

* Update device mempool

* only show overview if multiple

* Don't override user set warn percentages in discovery

* fix missed usage

* fix style

* Safety check to not rename rrd files incorrectly if migration has not been run.

* Fix overview percent bar and represent available and used on the bar

* missed an item to convert to mempool_class

* percent on the wrong side
2020-11-23 15:35:35 -06:00
Jellyfrog
1220d583e9
Apply fixes from StyleCI (#12336) 2020-11-21 22:52:58 -06:00
hartred
c66d6493fa
SNR-ERD add support RSensor-H/T/P (#12328)
* SNR-ERD add support RSensor H/T/P

yaml

* SNR-ERD add support RSensor H/T/P

test json

* SNR-ERD add support RSensor H/T/P

snmpsim
2020-11-20 21:25:46 -06:00
hartred
3ffb797705
Add support new os SNR-ERD (#12315)
* Add support new os SNR-ERD

mib files

* Add support new os SNR-ERD

discovery os

* Add support new os SNR-ERD

support sensors

* tests files

* tests json
2020-11-14 20:24:50 +01:00
Keryazmi
565dc3c445
New device support named BTI SA-800 Series (#12264)
* New device named bti800

Support new device for model bti sa-805

* Create bti800.yaml

* Create BTI8xx-MIB

* Create BTI8xx-SYSTEM-MIB

* Create BTI8xx-TC-MIB

* Create BTI8xx-INTERFACE-MIB

* Create BTI8xx-SFP-MIB

* Create bti800.inc.php

* Create bti800.inc.php

* Create bti800.inc.php

* Create bti800.snmprec

* Create bti800.json

* OS icon for BTI800

* Update bti800.yaml

Change mib folder name 'bti800' to 'bti'.

* Rename mibs/bti800/BTI8xx-MIB to mibs/bti/BTI8xx-MIB

Change directory named 'bti800' to 'bti'.

* Rename mibs/bti800/BTI8xx-INTERFACE-MIB to mibs/bti/BTI8xx-INTERFACE-MIB

Change directory named from 'bti800' to 'bti'

* Rename mibs/bti800/BTI8xx-SFP-MIB to mibs/bti/BTI8xx-SFP-MIB

Change directory named 'bti800' to 'bti'.

* Rename mibs/bti800/BTI8xx-SYSTEM-MIB to mibs/bti/BTI8xx-SYSTEM-MIB

Change directory named 'bti800' to 'bti'.

* Rename mibs/bti800/BTI8xx-TC-MIB to mibs/bti/BTI8xx-TC-MIB

Change directory named 'bti800' to 'bti'.

* Create bti800.yaml

Added system temperature and transceiver temperature for BTI800.

* Delete bti800.inc.php

System temperature and transceiver temperature code convert to yaml file locate at /includes/definitions/discovery/bti800.yaml

* Update bti800.inc.php

Add missing code at line 20.

* Update bti800.inc.php

* Update bti800.yaml

* Delete bti.svg

* Replace bti.svg to bti.png

* Update bti800.snmprec

* Update bti800.json

* Update bti800.json

* Update bti800.json

* Update bti800.yaml

* Update bti800.inc.php

Change call for each current Tx and Rx value by using pre_cache() function instead using snmp_get() function for each value to return.
2020-11-11 23:13:55 +01:00
Denny Friebe
9977fc46df
Rittal CMC III: Add device support for PU and PU Compact (#12268)
* Rittal CMC III: Add device support for PU and PU Compact

* Rittal CMC III: Readd accidentally removed sysObjectID

* Rittal CMC III: Some small fixes

* Rittal CMC III: Use device serial number instead of the internal device id for state index naming
- version, hardware and serial is now read via yaml
- update test files

* Rittal CMC III: Check if the serial number is available

* Rittal CMC III: Update test data

* Rittal CMC III: Update unset

* Rittal CMC III: Remove space in yaml
2020-11-11 23:11:50 +01:00
Wheel
475c079402
Ubiquiti Edgepower battery values (#12247)
* UBNT-EdgeMAX mib update

* Ubiquiti Edgepower new SNMP values

* Fix typo

* Guess test data

* Update edgeos-ep.json

* more favorable rounding

* Update edgeos-ep.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-11-09 00:51:22 -06:00
Patrik Jonsson
591384f321
Adding Fortigate HA checks (#12300)
* Adding Fortigate HA checks

* Fixed issues the linter had

* Moving sync checks to the poller since standalone units was marked as unsynchronized

* Whitespace lint corrections

* More whitespace linting fixes

* Removing haState since it only showed the state of one device in the cluster.

* Adding a third state fo sync where it will show a warning if a device that is part of a cluster does not have a peer

* Updating snmp test data for fortigate 1500d

* Changing numerical oids to names

* Restoring the original 1500d json file

* Adding cleaned test data

* Removing tags to see if that makes Travis happier

* Removing duplicate rows in SNMP data

* Take this Travis!

* Pretty please Travis?

* Fourth time's a charm?
2020-11-09 00:07:45 -06:00
Hayden
e34b6877fd
Add OSPF cost (TOS) (#11929)
* add OspfTos model to include ospfIfMetricEntry data (ospf interface cost)

* remove WIP comment

* add new model and db migration

* update OspfTos relationship to OspfPort and correct cleanup call

* add "Cost" to device\routing\ospf web UI interface

* updated db-schema test unit

* updated db_schema to resolve conflicts

* removed tos metrics from rrd ospf stats due to rrdcached errors

* reorder db_schema.yaml to match upstream

* readd ospf_tos to db_schema

* styleCI changes

* Capture OSPF test data

* add ospf unit tests for iosxr

* ospfAuthType

* update db_schema

* remove extra migrations

* add ospf tests for iosxe

* add ospf test to ios

* merge ospf_tos into ospf_ports

* update db_schema

* update ospf module unit tests for ios, iosxe, iosxr

* fix ospf_ports ospfIfMetricStatus column type

* update db_schema

* more efficient dropColumn in down() migration

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-11-07 09:27:25 -06:00
averzicco
f7f2688125
Fix bgp polling for BGP4-MIB devices (#12301)
* Fix bgp polling

* Change polling logic for BGP4-MIB devices

* make int rollover easier to read

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-11-07 09:12:09 -06:00
joseUPV
e781537b56
Ignore aos6 phantom fan (#12303) 2020-11-07 01:56:25 +01:00
Tony Murray
25722bbbd5
Faster initial database creation (#12297)
* Faster initial database creation
Add db dumps to improve initial db migration
On my test system 13s -> 7s, a 46% reduction.
Should help out a lot on systems like RPi

* lnms schema:dump command

--snapshots saves db snapshots, otherwise it saves the yaml

* fix style

* fix timezones...

* not working with in-memory db yet
remove build.sql
2020-11-06 01:19:15 +01:00
Jellyfrog
28591c0330
Split VMware into seperate OS (#12243)
* Split VMware into separate OS

* Bump VMware MIBs
2020-11-03 21:27:23 +01:00
Jellyfrog
50c8033099
Laravel 8.x Shift (#12235)
* Shift HTTP kernel and middleware

* Shift service providers

* Shift console routes

* Shift to class based factories

* Namespace seeders

* Shift PSR-4 autoloading

* Default config files

In an effort to make upgrading the constantly changing config files
easier, Shift defaulted them. This allows you to review the commit
diff for once for customizations when you are done Shifting.

Moving forward, consider using ENV variables or create a separate
config file to allow the core config files to remain as default
as possible.

* Shift Laravel dependencies

* Shift return type of base TestCase methods

From the [PHPUnit 8 release notes][1], the `TestCase` methods below now declare a `void` return type:

- `setUpBeforeClass()`
- `setUp()`
- `assertPreConditions()`
- `assertPostConditions()`
- `tearDown()`
- `tearDownAfterClass()`
- `onNotSuccessfulTest()`

[1]: https://phpunit.de/announcements/phpunit-8.html

* Shift cleanup

* console routes

* composer update

* factories

* phpunit

* bootstrap pagination

* model factory

* wip

* Apply fixes from StyleCI (#12236)

* wip

* Apply fixes from StyleCI (#12238)

* wip

* wip

* wip

* wip

* Apply fixes from StyleCI (#12240)

* wip

* Apply fixes from StyleCI (#12242)

* composer update

* Bump to PHP 7.3 minimum

Co-authored-by: Laravel Shift <shift@laravelshift.com>
2020-11-03 10:18:31 -06:00
Hans Erasmus
6c4596d1b9
Added new authalgo support for SNMPv3 (#11966)
* Added new authalgo support for SNMPv3

* Update 2020_07_27_00522_alter_authalgo_column.php

Fixed case

* Update addhost.inc.php

Fixed case

* Update snmp.inc.php

Fixed case

* Update db_schema.yaml

Fixed case

* Fixed SHA-* order to ascending

* Update 2020_07_27_00522_alter_authalgo_column.php

Fixed space

* Update db_schema.yaml

Fixed line to be of type string

* Update config_definitions.json

Fixed sorting

* Fixed test file case sensitivity

* Fixed rollback function

* SourceDoctor code for checks

* Fixed indentation issues on Travis test

* Update to re-trigger testing stuck on CLA step

* Added crypto-algo updates

* Incorporated suggestions from Jellyfrog

* Added documentation entry

* Fixed travis spacing error

* Fixed validations

* Delete snmpv3_version_compare.patch

Sorry, this one was not supposed to be there.

* Added poller evaluation

* Added poller comparison

* Fixed merge-conflicts

* Fixed typo in test unit

* code refinements
only can check on webui that it supports the algorithms, hopefully, the eventlog is enough to notify users of distributed pollers.

* style fixes and remove openssl setting

* fix device access

* fix missing migration column

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-10-29 13:02:26 -05:00
Tony Murray
4746c3f9d0
Fix permissions bug in IRC (#12266)
* Fix permissions bug in IRC
Rename Permissions class to remove confusion with the Facade

* Fix style
2020-10-28 16:07:03 -05:00
corsoblaster
c47ddd2c17
Basic support for Sophos xg v18 (#12251)
* Basic support for Sophos XG V18

Basic support for Sophos XG V18 - new version of SFOS with update snmp structure

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Update includes/definitions/discovery/sophos-xg.yaml

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>

* Update sophos-xg.yaml

* Moved file into subfolder

* Update sophos-xg.yaml

* Fix mib folder (deleted)

* Fix snmp file references

* Update sophos-xg.yaml

* Fix folder by vendor

* Update sophos-xg.yaml

* Update sophos-xg.yaml

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2020-10-25 12:51:01 +01:00
Tony Murray
0fbd60416f
snmpwalk_cache_oid() handle multiline strings (#12254)
* snmpwalk_cache_oid handle multiline strings

* remove useless function

* some output has no space after equals

* airos-af-ltu use hr processors

* don't try to append with empty strings

* fix changed test data due to fix

* revert smartax

* better regex
additional check
2020-10-24 22:56:01 -05:00
Hayden
397a10e73f
new sensors for siteboss OS + new sensor type: percentage (%) (#11958)
* split siteboss 530 and 550 into multiple OS

* add more sensors to siteboss550 and new Percent sensor

* fix contact closure event state values

* split os polling for siteboss to siteboss530 and siteboss550

* add test unit for siteboss550, rename test unit for siteboss to siteboss530

* refactor siteboss os polling to \Librenms\OS

* implement OSPolling to Sitebos550

* force save in pollOS() to keep custom sysName during polling

* updated unit test

* update device graphs

* remove pollOS and extra save()

* siteboss550 no longer extends OSPolling

* update siteboss550 test data

* update discoverOS() to match recent os discovery changes

* styleCI changes

* fix siteboss hardware discovery; add check to OS polling if os_group .inc file exists

* collapse siteboss to single OS, implement siteboss sensors in advanced discovery

* add siteboss unit tests

* removed unneeded OS disco defs

* styleCI changes

* more styleCI changes

* split siteboss os to siteboss530 and siteboss550

* split siteboss os to siteboss530 and siteboss550

* move php polling back into yaml

* keep original siteboss OS name

* resave snmp data for siteboss OS

* resave snmp data for siteboss550 OS
2020-10-20 19:11:12 -05:00
PipoCanaja
f822567186
Fix wrong Zyxel GS1900 Q-BRIDGE replies (fdb-table) (#12230)
* handle wrong GS1900 zyxel QBRIDGE implementation
2020-10-20 19:01:17 -05:00
Jellyfrog
0a30243416
Convert VyOS to yaml (#12231) 2020-10-20 13:31:12 +02:00
Tony Murray
a0f91de9b2
Capture OSPF test data (#12215) 2020-10-19 09:35:41 -05:00
Guilherme Poletto
3753e70476
initial support for DC-UPS-48 from algcom (#12209)
* initial support for DC-UPS-48 from algom

* add snmprec files for algcom-dc-ups

* rename MIB and create json test unit

* new MIB name, recapture test snmprec and json

* remove unnecessary OS matching
2020-10-17 22:05:02 +02:00
Tony Murray
6cd42b3ee0
Fix Oki LAN OS info (#12213)
* Fix Oki LAN os info
fixes #12207

* Add test data and some bonus info
2020-10-16 15:07:29 +02:00
Richard Kojedzinszky
2ca6f2f8d4
schema: add missing primary keys (#12106)
* schema: add missing primary keys

* Exclude ipv4_mac.id

* Made primary key migrations SQLite compatible

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-10-14 20:37:40 -05:00
Tony Murray
1e4702fa4f
Support multiple daily process locking backends with distributed polling (#11896)
* Implement locks in the file cache

* Replace custom locks

* implement restore lock
Used when re-hydrating

* remove legacy use statements

* Add class descriptions

* Fix style

* Default to database cache driver

* missed cache_locks table
prevent chicken-egg issue

* style fixes

* Remove custom file lock implementation

* missed items from file cache

* Update schema definition
hmm, other schema noise must be from manual modification as this is generated from a freshly migrated db.

* require predis, it is pure python, so no harm in adding

* and set predis as the default client
2020-10-07 07:36:35 -05:00
Dag Bakke
f9d1719296
make Eaton Gigabit Network Card (AKA M2) a separate OS (#12156)
* - make Eaton Gigabit Network Card (AKA M2) a separate OS
  (this hardware shares the sysOID with an older product, but not much more than that.)
- add relevant and updated mib-files. This creates duplicates of the same mibfile in mibs/.
  unsure if this can be avoided

* axed some old mibs again
2020-10-06 16:57:45 +02:00
Jellyfrog
b5d94c38a6
Add support for Supermicro hardware/serial discovery (#12176)
* Add support for Supermicro hardware/serial discovery

* add tests

* prefix with supermicro

* Update ServerHardware.php

* Update linux_supermicro.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-10-06 01:16:29 -05:00
Tony Murray
1b0210e16b
Add opengear hardware discovery (#12189)
Thanks @sjtarik
2020-10-05 18:10:11 +02:00
Tony Murray
88b40c3d6c
All os detection now uses Yaml (#12186)
* All os detection now uses Yaml
Move OS detection code into the Core module.
Defer all OS with snmp queries.
Add snmpwalk option.
Port ubnt and mobileiron to yaml.

* Silly ide refactor
2020-10-05 14:26:37 +02:00
Dan Baker
a818b26b58
Ciena SAOS 8 device improvements (#12172)
* Ciena SAOS 8 device improvements
- improved interface polling for certain devices with broken ifXEntry and long ifEntry value caching
- added G.8032 virtual ring status sensors
- adjusted default alert threshold for a sensor because some devices provide a nonsensical value (more work to be done here)

* Style fixes

* missed whitespace

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-10-04 20:43:54 -05:00
TheGreatDoc
6357db57f7
New device: Rohde & Schwarz Sx800 (#12181)
* New device R&S

* Fix SVGs

* Fix SVG (v2)

* Fix definition
2020-10-03 18:31:44 +02:00
FingerlessGloves
039ce4cb55
Add FreshTomato OS definition which is fork of tomato (#12173)
* add freshtomato snmprec file

add freshtomato snmprec , generated from latest freshtomato release

* add freshtomato test data

add freshtomato test data, generated from latest freshtomato release

* add freshtomato os definition

add freshtomato os definition

* freshtomato discovery for version, hardware model 

freshtomato discovery for version, hardware model

* update freshtomato.snmprec, extra oid

update freshtomato.snmprec, extra oid now showing since going to 1.68, from over night update.
LibreNMS can now show version and hardware (router model) correctly.

* update freshtomato.json, hardware is now populated

update freshtomato.json, hardware is now populated, since going to 1.68, definition discovery is working correctly it seems.

* Regenerate without lo ignored.

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-10-02 08:50:49 -05:00
Tony Murray
863fb96205
Scheduled maintenance test (#12171)
* alert schedule test

* Fix style

* Skip broken tests for now
2020-10-01 03:00:42 -05:00
Tony Murray
551e95a2e0
Docs: don't index changelogs (#12166)
* Docs: don't index changelogs

* Exclude 2019 changelog
2020-09-30 10:11:32 +02:00
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
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
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
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
O Palivan
ac30c78039
TAIT - Chassis, Software and Serial detection (#12131)
* HW, Ver and Serial

* tests
2020-09-21 19:57:56 -05: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
77c531527c
Apply fixes from StyleCI (#12117)
* Apply fixes from StyleCI

* Disable style check
2020-09-21 14:54:51 +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
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
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
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
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
craig-nokia
b91080df0b
Add basic support for GE Galaxy Pulsar Plus Controllers (#12087)
* Add basic support for GE Galaxy Pulsar Plus Controllers

* Add basic support for GE Galaxy Pulsar Plus Controllers

* Add basic support for GE Galaxy Pulsar Plus Controllers

* Modified Gepulsar.php
2020-09-12 01:34:32 +02:00
ospfbgp
59bc379a31
Add support for VOSS switches VSP-4900-12MXU-12XE, XA1440, and XA1480 (#12072)
* Update voss.yaml

* Update xos.yaml

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload
2020-09-11 15:26:19 +02:00
MARMONIER Cédric
7cd68f7ec6
Ifotec product integration (#12038)
* IFOTEC new product integration

* change source code indentation

* change source code for code climate checking

* change source code for code climate checking

* deletion of an unnecessary line

* add ifotec.php and test units

* forgetting about the previous commit

* modifications of test units

* add a test units

* optimization and add test units

* change SMNP mode request

* source code cleanup and and file for test units

* update .snmprec file

* update json test file

* update json test file

* IFOTEC mib integration

* add IFOTEC mib files

* IFOTEC mib integration for sensors

* cancel $oid2 unset

* delete useless line
2020-09-10 10:38:36 +02:00
Russell Morris
891a42e1c6
OS: Add support for Beagleboard (#12060)
Includes Beagleboard and Beaglebone boards. Also includes temperature
sensor support (also in test data)
2020-09-10 00:06:11 +02:00
Jozef Rebjak
69007a3b83
Updated Support of Smartax GPON OLT (#11719)
* Updated Support of Smartax GPON OLT

* Updated ports from Negatifff PR

* fixed blank line problem

* Added new sysObjectID

* Fixed Port Stats

* fixed line removals

* Update smartax.inc.php

* Update Smartax.php

* Update smartax.inc.php

* Update smartax.yaml

Co-authored-by: Tony Murray <murraytony@gmail.com>
Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2020-09-09 16:12:18 +02:00
craig-nokia
114df5aa8f
Added Nokia timos SFP RX/TX dbm sensors (#12065)
* Added Nokia timos SFP RX/TX dbm sensors

* Replacing timos.json
2020-09-08 15:07:04 +02:00
Tony Murray
bc1a8b84a4
Fix atenpdu sensors (#12055)
bad MIBs and incorrect skip value specification
2020-09-04 11:40:49 +02:00
Najihel
3cec78f8eb
Add Cisco Firepower 1140 (#12006)
* Sort FPR models by OID

* Add 2409 description + Add Cisco FirePOWER 1140

* Add tests data
2020-08-20 12:01:47 +02:00
Denny Friebe
0f74406dbd
Fixed Ubiquiti Airfiber LTU retrieval (#11844)
* Fixed Ubiquiti Airfiber LTU retrieval
* Fixed Rx/Tx modulation rate
* Fixed eth0 retrieval
* Fixed quality retrieval
* Fixed Tx/Rx rate
* Fixed distance retrieval
* Added Rx power chain0
* Added Rx power chain1
* Removed eth0 port status
* Removed duplicate Tx EIRP

* UBNT AF LTU: Remove the now useless eth0 port status sensor
eth0 is now logged by the port module, so we don't need a separate state sensor to log the status of the port.
This change was mentioned in the previous commit, but I forgot to include it...

* UBNT AF LTU: Updated test data

* UBNT AF LTU: Fix incorrect spaces

* UBNT AF LTU: Use getnext

* UBNT AF LTU: Add some type checks and fixes

* UBNT AF LTU: Passing sensor values to WirelessSensor calls

* UBNT AF LTU: Cast sensor value to int

* Revert changes made to the test data

* UBNT AF LTU: Add new test data

* UBNT AF LTU: Add discoverWirelessQuality function for quality discovery

* UBNT AF LTU: Use snmpwalk_cache_oid

* UBNT AF LTU: Remove blank line at start of control structure

* UBNT AF LTU: Fix RX Ideal Power Chain 1

* UBNT AF LTU: Fix distance sensor

* UBNT AF LTU: Update CPU usage OID

* UBNT AF LTU: Update test json

* UBNT AF LTU: Update test json 1.4.0
2020-08-18 08:39:41 -05:00
TheGreatDoc
29b09c8845
Arista EOS: Added groups and better sensor names (#11990)
* Arista EOS: Added groups and better sensor names

* Changed few sensors naming to remove redundancy

* Test files

* Better naming v2

* More rewriting and grouping

* And more grouping/rewritting

* Update arista_eos_vrf.json

* Minor code format fix

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-08-18 08:36:14 -05:00
Hans Erasmus
13e0da2f0f
Expand endrun os support (#12008)
* Expanded EndRun OS Support

* Added forgotten test data

* Fixed Travis' spacing complaints

* Fixed typo

* Fixed typo 2

* Fixed spacing,again

* Split up test data

* Fixed testing data

* Fixed discovery code blunder

* Fixed yaml definitions

* Fixed broken discovery

* Updated discovery definitions
2020-08-17 13:27:07 +02:00
craig-nokia
d29343db71
Nokia 7705 packet microwave (#12007)
* Nokia MW Rx support for the 7705 SAR platform

* Nokia MW Rx support for the 7705 SAR platform

* updated timos.snmprec for wireless

* restored tests/snmpsim/timos_*.snmprec

* Added timos test entries for wireless
2020-08-17 10:33:00 +02:00
arrmo
752b3e7db3
Updated documentation and Discovery, to match recent findings (#11999)
from review of Asuswrt-Merlin PR.
2020-08-06 13:45:33 +02:00
arrmo
54e5dc3df7
Wireless support for Asuswrt-Merlin (the same as Openwrt) (#11964) 2020-08-05 21:24:55 +02:00
Jozef Rebjak
eb2bb4242a
Added support for FS NMU (#11965)
* Added support for FS NMU

* travis fix

* another travis fix

* Migrated OS polling to new format
2020-08-05 15:02:47 +02:00
TheGreatDoc
c438a164fe
Fix qnap state graphs (#11976)
* Fix qnap state graphs

* Test file
2020-08-01 13:17:59 -05:00
Tony Murray
7822293da4
Fix USW detection again (#11978)
* Fix USW detection again
Please UBNT fix your SNMP.  sysObjectID for each model is all I ask.

* Add test data
2020-07-30 00:04:35 -05:00
Tony Murray
020c5fd7e1
Remove legacy code and fix missing device graphs (#11950)
* removing $graphs global

* remove unused things

* fix some additional graphs

* Fix graphs persisting too soon

* correct name for poller module performance graph

* only one type of graph is used here
2020-07-23 09:57:22 -05:00
TheGreatDoc
1a8c4df880
Fix QNAP os polling (#11938)
* Remove old qnap code.

* Fixed test
2020-07-18 00:14:16 +02:00
Hans Erasmus
a5bb437216
Added basic EndRun support (#11932)
* Added basic EndRun support

* Fixed spaces as indicated by Travis

* Changes applied as per request and suggestions

Incorporated @murrant's suggestions.

* Update Endrun.php

* Update endrun.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-07-14 11:22:40 -05:00
arrmo
8899ad6d5a
Initial Release, wireless sensor support for Openwrt (#11768)
* Initial Release, wireless sensor support for Openwrt

* Extend Openwrt support, add more sensors

* Add documentation for Openwrt Wireless Sensor support

* Moved location of Openwrt.md

* Update openwrt.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-07-09 16:13:58 -05:00
Tony Murray
0c334f130d
Fix users that set a non-array for cors (#11921)
* Fix users that set a non-array for cors
combine two Env util classes

* Used the wrong thing.
2020-07-09 15:03:12 -05:00
javier
a30fcbde0a
Support NetMan 204 (#11913)
* Update riello.yaml

Fix NetMan 204 snm cards not always identified as Power bug Generic devices

* Update riello.snmprec
2020-07-08 22:32:22 +02:00
KodApa85
a3cd90da05
newdevice: Added support for Fortinet FortiVoice devices (#11914)
* newdevice: added supprot for Fortinet FortiVoice

* Renamed fortivoice yaml file

* Added test date for FortiVoice OS

* Matching Fortinet to be like FortiSwitch

* Corrected test data...
2020-07-08 17:55:50 +02:00
craig-nokia
db7ac390b2
Added check for incorrect ifConnectorPresent truth values, if invalid… (#11634)
* Added check for incorrect ifConnectorPresent truth values, if invalid, save it as false

* Added space after comma line 629

* Update ports.inc.php

Updated per murrant and tested.

* Update ports.inc.php

* Update ports.inc.php

Changed to check if ifConnector is set and if the response is not true or false, set it to null.

* Update ports.inc.php

* Update ports.inc.php

Fixed the codeclimate space issue

* Update test data

* fix differing escapes

* fix ciena-sds eol

* Revert timos.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-07-08 08:44:45 -05:00
KodApa85
726a762944
newdevice: Added support for Eltek SmartPack2 Touch (#11909)
* newdevice: Added support for Eltek SmartPack2 Touch

* Remove test data

* Added test data.
2020-07-08 13:41:02 +02:00
Nick Peelman
d5e0c6ca57
Add Divisors to Eaton Matrix sensors (#11906)
* Add Divisors to Eaton Matrix sensors

* Fix tests

* Update sensor_limits
2020-07-06 18:14:19 +02:00
penfold1972
23368faa61
Ciena SDS (#11857)
* Added discovery for temp/dbm graphs for LEOS mibs.

* Cleaned up Typo on Index lines for LEOS MIBs

* Cleaned up Typo for LEOS System MIB

* Added CPU Util graphs for LEOS MIBs

* Added test data and a MIB

* Shortened Index fields

* Update ciena-sds.yaml

* Update ciena-sds.json

* Update ciena-sds.yaml

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-07-06 15:40:43 +02:00
Adam Bishop
af14b6a73d
OS detection for Dell PowerVault MD arrays (#11509)
* OS detection for Dell PowerVault MD arrays

I'm not 100% sure it was worth Dell implementing SNMP - the array
exposes 6 OID's outside of MIBII, and we poll both the useful ones.

At least we get an icon.

* Test data

* Remove polling and discovery module filters
2020-07-05 13:49:16 +02:00
cwispy
8e30541c95
Add support for Aten PE8216 PDU (#11887)
* Add support for Aten PE8216 PDU

* Add support for Aten PE8216 PDU

* Add support for Aten PE8216 PDU

* Revert "Add support for Aten PE8216 PDU"

This reverts commit 5d2f195f28.

* Revert "Add support for Aten PE8216 PDU"

This reverts commit ebfd659775.

* Fixed integer issue with skip_values

* More integer changes

* Add json file

* Fix yaml file

* Setting modules like that reduces user control

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-07-05 00:20:12 -05:00
hartred
a94f11a911
Add support SNR Memory pool, dBm, voltage, current, fan speed and status (#11888)
* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload
2020-07-04 23:50:28 -05:00
Tony Murray
9ca7e91a37
Fix route tests (#11898)
route does not have a poller module
2020-07-04 23:27:20 -05:00
TheGreatDoc
dd8844980f
Move qnap to yaml discovery + extended discovery (#11882)
* Move qnap to yaml discovery + extended discovery

* Fix pre-cache
2020-07-01 06:53:59 -05:00
Derova
c606659e11
Added support for Integra E radios (#11871)
* Added support for Integra E radios

* Update saf-integra-e.json

* Update saf-integra-e.inc.php

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-06-30 16:12:00 +02:00
Tony Murray
9fbc3cbb05
Merge branch 'master' into patch-1 2020-06-29 23:28:27 -05:00
Tony Murray
db5524dc09
Merge pull request #11762 from murrant/consolidate-install-doc
Update and Consolidate Install docs Ubuntu 20.04 and CentOS 8
2020-06-29 01:10:28 -05:00
Tony Murray
5f0388f0e3 Remove DB credentials from config.php
Better validation when config.php does not exist

Update docs and quote password

only populate legacy vars in config_to_json
drop .travis.yml config copy
remove credentials from config.php.default

Check for existance of .env instead of config.php in python scripts

legacy credential cleanup

tiny cleanups

consistent env for artisan server and artisan dusk
2020-06-27 07:47:08 -05:00
Tony Murray
cab235c3e9
Merge pull request #11841 from murrant/loadbalancers-tests
Loadbalancers tests
2020-06-26 13:51:50 -05:00
Tony Murray
5aeb6421ea
Update f5.json 2020-06-26 12:49:57 -05:00
Vitali Kari
0f2ddba10b
Cirpack states mapping (#11855)
* change generic states of intermidiate snmp states

* add test data
2020-06-24 19:10:48 +02:00
sorano
815b2e857f
Add Riello Netman 204 support (#11856)
* Update riello.yaml

Support new device sysObjectID

* new riello test data

new riello test data

* Add missing json test file
2020-06-24 18:47:24 +02:00
Geoffrey Ferk
6d41615e88 Updated snmprec data 2020-06-23 15:19:42 -05:00
Geoffrey Ferk
530bc97cf3 Deleted and recreated dhcpatriot.json 2020-06-22 13:17:16 -05:00
Geoffrey Ferk
995b3a38ae Updated snmprec data 2020-06-22 13:17:16 -05:00
Geoffrey Ferk
11609c094a Updated snmprec data 2020-06-22 13:17:16 -05:00
Geoffrey Ferk
3f1512d4db Updated snmprec data 2020-06-22 13:17:16 -05:00
Geoffrey Ferk
8d79fa862f Updated snmprec data 2020-06-22 13:17:16 -05:00
Geoffrey Ferk
f77fb74729 Updated snmprec data 2020-06-22 13:17:16 -05:00
Geoffrey Ferk
236dad2c7a Updated snmprec info 2020-06-22 13:17:16 -05:00
Geoffrey Ferk
30656481d9 New OS: DHCPatriot (dhcpatriot) 2020-06-22 13:17:15 -05:00
Tony Murray
cbe0736feb Fix sqlite test failure 2020-06-22 13:13:56 -05:00
Tony Murray
059693d20d update os data 2020-06-21 21:29:59 -05:00
Tony Murray
a21f90aae2
Update f5.json 2020-06-20 18:09:49 -05:00
Tony Murray
ffcc59d1fc test data 2020-06-19 13:56:16 -05:00
Tony Murray
d44ff69b99 Load Balancers test 2020-06-19 13:40:02 -05:00
Tony Murray
9372074b6d
Merge pull request #11728 from yac01/master
Feature: F5 LTM bandwidth controller
2020-06-19 13:39:36 -05:00
Yacine BENAMSILI
e656baf977 Add f5 snmprec last update 2020-06-19 14:14:36 +02:00
yon2004
953def1518
Added discovery for ups-nut status (#11606)
* Added UPS NUT state sensors

* Added UPS NUT state sensors

* Added UPS NUT state sensors

* Added UPS NUT state sensors

* Added UPS NUT state sensors

* Update linux_ups-nut.snmprec

* Fixed UPS states so making alerts easier.

* Fixed

* Actually Fixed it

* Added alert rules for UPS-NUT
2020-06-18 09:43:11 +02:00
Tony Murray
3754863de6 Create apc_inrow-dx.snmprec
Create apc_uniflair-sp.snmprec

Add JSON test data
2020-06-17 18:06:03 -06:00
Martin22
172e759720
Imcopower - Fixed state in imcopower-big (#11774)
* Fixed state

* Minor fix

* Again minor fix

* Fixed Travis

* Fixed index
2020-06-17 22:14:05 +02:00
Tony Murray
867aa132c1
Merge pull request #11661 from SourceDoctor/app_dhcp_enhancement
Application DHCP Upgrade
2020-06-16 17:03:45 -05:00
Yacine BENAMSILI
2a25edaede Add f5 snmprec for tests 2020-06-16 22:16:55 +02:00
Joost van Voorst van Beest
5461a6119a Added tests for Jacarta InterSeptor 2020-06-15 17:54:53 +02:00
Joost van Voorst van Beest
ef2ae7ddb8 Added initial simple support for Jacarta InterSeptor environmental monitoring device. 2020-06-15 14:02:28 +02:00
Alexander Moisseev
200a39a4b0
Add Edgecore ES3526XA OID (#11791)
* Add Edgecore ES3526XA OID

* Add test for Edgecore ES3526XA-V2
2020-06-14 23:51:02 +02:00
Tony Murray
240b84aa3f
Merge pull request #11776 from TheGreatDoc/ups-traps
Added UPS-MIB Trap On Battery (upsTraps.0.1)
2020-06-14 16:41:42 -05:00
Tony Murray
bb70afa4ef
Merge pull request #11792 from XxPatrickxX/master
ArubaOS-CX Identification
2020-06-14 16:37:38 -05:00
Hans Erasmus
f8e8dfe3a5
Gigamon GigaVUE basic support (#11824)
* Gigamon GigaVUE basic support

* delete os/gigavue.inc.php it is not used

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-06-14 21:05:54 +02:00
PipoCanaja
15fe63d6b1
Feature: skip_value can check OID existance (#11822)
* exists for skip_values

* AR routers are using another logic for SFPs Power

* schemas

* tests
2020-06-14 09:21:22 -05:00
Hayden
f7c5e13c2b
Add new hardware model for Eltek/enexus (#11809)
* new eltek hardware version begins with SPS-FPS

* updated test data for enexus
2020-06-14 13:02:45 +02:00
SourceDoctor
213a11eb98 Merge remote-tracking branch 'upstream/master' into app_dhcp_enhancement 2020-06-09 20:37:30 +02:00
TheGreatDoc
267a9900d0 Revert last commit 2020-06-09 17:13:29 +02:00
Tony Murray
9fdd92a063
Fix Arista tests data (#11797) 2020-06-09 14:52:16 +02:00
TheGreatDoc
f1c4d33ebc Change from shouldReceive->never() to shouldNotReceive->once() 2020-06-09 06:32:29 +02:00
XxPatrickxX
92af7735d7 Update arubaos-cx.snmprec
fixed typo.
2020-06-08 17:34:43 -05:00
XxPatrickxX
20a9536af4 Create arubaos-cx.json
Added unit test json output
2020-06-08 16:20:16 -05:00
XxPatrickxX
4479fa4f27 Create arubaos-cx.snmprec
adding required snmprec test file.
2020-06-08 14:05:24 -05:00
SourceDoctor
1093315700 Merge branch 'master' into app_dhcp_enhancement 2020-06-08 20:51:41 +02:00
TheGreatDoc
946e90b68d
Added Arista SN (#11737)
* Added Arista SN

* test data

* Fixed json

* You accidentally removed the serial

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-06-08 08:26:22 -05:00
PipoCanaja
35b4e1459e
Arista VRF discovery support (#11421)
* arista vrf discovery
* more mibs
* tests
* codeclimate
2020-06-08 14:29:18 +02:00
PipoCanaja
ea2928babd
VRP FDB table correctly parsed on some CE switches (#11766)
* vrp FDB table corrected on CE switches

* sleep 5 in snmpsim to run tests.

* 6 seconds wait when snmpsim.fork is called from bootstrap

* rollback in Snmpsim Class

* Update bootstrap.php
2020-06-07 23:32:15 -05:00
TheGreatDoc
a28556e27e Fixed sensors()->save and sensor creationT 2020-06-08 06:27:10 +02:00
TheGreatDoc
dae47d73e1 Update UpsTrapsOnBatteryTest.php 2020-06-07 11:40:26 +02:00
TheGreatDoc
6f91e9e287 Create factory->Sensor model. Fix some format issues in UpsTrapsOnBattery.php and more UpsTrapsOnBatteryTests 2020-06-07 11:21:14 +02:00
O Palivan
53e9579ae9
Added Packetlight PL2000 support (#11782)
convert Watts to Dbm and call user_function on limits
dbm graphs summary
pl1000eTests update
Tests OK
2020-06-05 20:58:34 +02:00
TheGreatDoc
8e5da6d2be Add test 2020-06-05 11:48:22 +02:00
Albert Siersema
cd362b7983
Fix missing PoE port graphs for Cisco Catalyst 9K (#11698)
* Fix missing PoE port graphs for Cisco Catalyst 9K

* Reworked code: 2 assignments, added tests

* Simplify code

Checking the MIBs...
CISCO-POWER-ETHERNET-EXT-MIB: AUGMENTS { pethPsePortEntry  } 
POWER-ETHERNET-MIB: INDEX { pethPsePortGroupIndex , pethPsePortIndex  }

This means cpeExtPsePortEntry is always indexed by exactly 2 values.  No point in populating slot.subslot.port

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-06-04 22:10:06 -05:00
PipoCanaja
90d4ef710d
VRP with new Discovery model for hw/serial etc (#11756)
* VRP with new Discovery model for hw/serial etc

* tests
2020-06-01 22:56:53 -05:00
PipoCanaja
82796c389b
misplaced_test (#11758) 2020-06-01 22:52:04 -05:00
Tony Murray
841203c8c5 Consolidated doc (Ubuntu 20.04 Nginx tested) 2020-05-31 21:45:39 -05:00
Josh Baird
aa4f6ff989
Add OS support for Aviat WTM (#11654)
* Add support for Aviat WTM

* Remove sleeps

* Rename MIBs

* Remove old MIBs

* Fix mystery tabs

* 4 spaces, not 2

* Bybebye, whitespace

* Moar whitespace

* Update AviatWtm.php

* Update aviat-wtm.yaml

* Delete aviat-wtm.inc.php

* Update aviat-wtm.snmprec

* Update aviat-wtm.json

* Update AviatWtm.php

* Update aviat-wtm.json

* Update AviatWtm.php

* Update aviat-wtm.json

* Update AviatWtm.php

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-05-31 16:19:07 -05:00
PipoCanaja
d308af07c1
Added TPLINK vlans support (#11697)
* tplink vlans

* codeclimate
2020-05-30 18:39:15 -05:00
PelliX
5f3b82de6f
Added discovery and graphing for JunOS (SRX) RPM probes (#11187)
* Added discovery and graphing for JunOS (SRX) RPM probes

* Proposed changes for a percent based sensor type

* Fixed missing MIB declaration in JunOS YAML discovery file

* Updated Health-information.md to reflect the new percentage value type

* Added separate test data for junos_rpm type

* Update sensors.php

* Update sensors.php

* Update functions.inc.php

* test re-run

* Update junos_rpm.json

* percentage -> loss

* add ifSpeed prev test data

* mis-merge

* update sensors

* and bgp...

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-05-30 18:24:43 -05:00
Tony Murray
24b6222712
fix asa test data (#11744) 2020-05-30 17:04:49 -05:00
PipoCanaja
f4c2ca8d24
New Device: Paradyne SHDSL modems (#11679)
* paradyne

* paradyne logo

* tests

* Update paradyne.svg
2020-05-30 18:41:23 +02:00
mattosem
8169adf784
New Device: PowerTek/BladeShelter PDU support (#11731)
* Added PowerTek/Bladeshelter PDU support

* Corrected SVG

* Added test data

* Rename SPSv1-MIB.mib to SPSv1-MIB
2020-05-30 18:25:13 +02:00
JP
e22a9fe5aa
Add new sysobjectid for Arbor ArbOS TMS appliances (#11711)
* Add new sysObjectID for Arbor ArbOS TMS appliances

Arbor ArbOS TMS appliances use a sysobjectID of SNMPv2-SMI::enterprises.9694.1.5. Currently the arbos.yaml file only has 9694.1.4 so Arbor TMS appliances are not getting detected correctly as ArbOS devices.

netnms01:/opt/librenms# snmpwalk -v2c -cdeleted arbortms01.dal
SNMPv2-MIB::sysDescr.0 = STRING: Peakflow TMS 8.4 Model: TMS-HD1000 Serial: XXXXXXXXXX
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.9694.1.5

* New sysobjectid for Arbor ArbOS TMS appliances

* New sysobjectid for Arbor ArbOS TMS appliances

* Update arbos.json

* Create arbos_tms.snmprec

* Update arbos.snmprec

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-05-27 11:09:13 -05:00
Tony Murray
e292cc98cc
Wrong snmpsim endpoint for TravisCI pre-start (#11706)
* Wrong snmpsim endpoint for TravisCI pre-start

* Fix full check parsing
2020-05-26 13:18:27 -05:00
Bukowski
bb2ac27a1d
Add Papouch Quido Device (#11605)
* Create QUIDOQ-MIB

* Rename QUIDOQ-MIB to QUIDOS-MIB

* Create papouch-quido.yaml

* Create papouch-quido.yaml

* Add additional match data and over graph

* Create papouch-quido.snmprec

* Create papouch-quido.json

* Update papouch-quido.yaml

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-05-26 12:02:49 -05:00
Dragan Savic
79ca57ed28
Fix cisco sensor thresholds (#11547)
* Update functions.inc.php

Skip changing the high limit threshold to low limit threshold value when high limit threshold doesn't exist for a sensor. If low limit threshold value was set by discovery process or manually, the same value would be also set for high limit threshold.

* Update cisco-entity-sensor.inc.php

Skip invalid sensor threshold values, which some Cisco ASR devices (probably other families too) return.

* Add snmprec data for Cisco ASR9010

* Create iosxr_asr9010.josr

* Create iosxr_asr9010.json

* Delete iosxr_asr9010.josr

* Update iosxr_asr9010.json

* Update iosxr_asr9010.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2020-05-25 13:53:38 +02:00
PipoCanaja
a44cdc2f45
Add WAN (3/4g-LTE) support on Huawei AR family (#11619)
* 3g-LTE WAN stats

* Get HW name on AR16x family

* serial for AR

tests

* enable snmpsim log

* Update bootstrap.php

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-05-24 15:57:06 -05:00
Adam Bishop
3acbd72ab1
OS Detection for Mobileiron Core, Sentry appliances (#11510)
* Detection for MobileIron appliances

* Test data

* Remove references for GANDI-MIB

Turns out these aren't actually needed for Linux-likes

* Remove module filters
2020-05-24 15:53:17 -05:00
footstep86
91c04a1d54
Added FortiMail support (#10895)
* Added FortiMail support

* Added FortiMail support

* Update fortimail.inc.php

* optimized discovery

* Syntax change

* Added test data

Co-authored-by: Neil Lathwood <gh+n@laf.io>
2020-05-24 15:45:14 -05:00
Tony Murray
ee13299a77
Testing cleanup (#11677)
All tests use transactions
One test isn't a db test...
2020-05-24 13:49:01 -05:00
footstep86
06c991ef57
Added FortiAuthenticator support (#11633) 2020-05-24 11:55:54 -05:00
footstep86
9f82079e2c
Added FortiSandbox support (#11593) 2020-05-23 21:41:02 -05:00
PipoCanaja
b8c6769049
New corner cases for Huawei VRP BGP (#11663)
* vrp-improve

* add bgp4 data, and get errors

* Fix WRONG Type error on bgpPeerRemoteAs + handle ErrorSubCode in  a generic way

* fixing tests

* clean

* improve state backup to BGP4-MIB

* tests with corrected data

* tests

* restore original tests/data/vrp_5720.json
2020-05-23 21:11:55 -05:00
Tony Murray
e7d954d7df
Fix dev:check fail-fast not returning error (#11672)
Fix dantherm definition
2020-05-23 14:43:41 -05:00
Jellyfrog
b09bc07f8f
Laravel 6.x (#11397)
* Update Laravel core files

Fix app/Http/Kernel.php

* Use RouteServiceProvider::HOME

* Sync Laravel default config files

* Update composer dependencies to Laravel 6

* fix resources/lang/en/validation.php

* Manually fixing tests

required by travis, fails locally???

* Update wpb/string-blade-compiler

* Add new viewany() authorization policies

* Update minimum PHP version to 7.2

* Re-generate our json test-dumps

Due to:
https://github.com/laravel/framework/pull/16069
https://github.com/laravel/framework/pull/31100

* update truenas data

* fix truenas

Co-authored-by: Laravel Shift <shift@laravelshift.com>
Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-05-23 12:05:18 -05:00
Maikel de Boer
b3f78ec510
Vendor Dantherm (#11603)
* Build support for Dantherm CC3000 Cooling Controller

* add missing files + test data

* Create dantherm-os.json

* Update dantherm-os.json

* Update dantherm-os.yaml

* Update dantherm-os.yaml

* Update dantherm-os.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2020-05-23 18:51:34 +02:00
SourceDoctor
6d855b9e6f Merge remote-tracking branch 'upstream/master' into app_dhcp_enhancement 2020-05-23 09:51:32 +02:00
Tony Murray
ce21011aff
Rewrite development helper to lnms dev:check (#11650)
* Refactor pre-commit to class

* docs build

* dusk check

* ci mode for checks

* full checks

* other mysql

* make other lint checks actually work
fix pylint finding

* ci is a long opt

* fix undefined index

* dusk fully working

* ask for forgiveness, not permission

* fix whitespace

* skip dusk sometimes

* Handle 3com and other os with digits

* flags instead of if else spaghetti

* convert to command

* cleanup

* missed check

* fixes

* case

* self-check :D

* argument now

* fix bugs from refactors

* another fix

* adjust file change parsing

* refactor execut a bit

* fallback to global quiet when unknown type.

* allow quiet override for specific commands

* output cleanup

* check flow

* start of tests

* file categorizer tests and fixes

* fixes and cleanup

* skipable not implemented...

* more tests, fix bugs

* more tests and cleanup

* wrong command

* fix canCheck and set env properly

* full env fix

* don't allow dusk on user's run as it will erase their db.

* fix os option

* fix whitespace

* don't need to start server

* ci doesn't like that
2020-05-22 20:27:48 -05:00
SourceDoctor
f16488d767 Test adjustment to bigger column 2020-05-23 01:44:17 +02:00
Tony Murray
5fc3fcb9e8
Make migrations work in SQLite (#11643)
* WIP Sqlite

Down methods don't work either, avoid them with refresh for now.

WIP persistent support

WIP db_schema

WIP db_schema 2

Update new migrations...

revert dump_db_schema changes for now, too much difference.

fix migrations on mysql

fix up some more items, this should be our target schema
lots of index renames and a two misc changes

index rename WIP

index rename WIP

another round

fix up new schema changes

try case insensitive fix

Trying tests WIP

fix down methods

DBSetupTest working (uses mysql)

Test sqlite migrations work

* Properly validate sqlite output

* revert glue changes, should be separate PR

* remove dusk workaround

* remove unused variables

* import

* sqlite capitalization

* Revert some refresh tests

* testing_mysql back to testing
2020-05-22 16:49:21 -05:00
Heath Barnhart
e414352356
OSPF SNMP Trap Handlers (#11647)
* Intitial push working tests

* Adding unit tests

* created interface state unit tests

* started ospf nbr unit tests

* finished nbr change unit tests

* precommit checks pass

* removed uneccsarry relationship
2020-05-21 15:15:39 -05:00
footstep86
b71d933ac9
Updated FortiWeb support (#11632) 2020-05-21 15:14:56 -05:00
Adam Bishop
3838549748
Fix test behaviour with PHP 7.4 on Fedora 32 (#11648)
* Handle cases where the data type is hex encoded, but the data is
not actually hex encoded.

* Test data claims 4x, but is not hex encoded

* Encode the private string

* Replace 4x|<private> with 3C707269766174653E

* Re-run save test data.

Seems some of these files might have been hand edited at some point
as fields seem out of order

* Have a trap test use a mock instead of a db query
2020-05-21 08:22:55 -05:00
Tony Murray
f1320b6510
Speed up tests by skipping pings (#11642)
* Mock fping for module tests, there is no need.
Removes some wait time.

* fixup some rrd disabling code

* oops
2020-05-19 22:08:41 -05:00
Dan Baker
cbb0b5219e
Added support for Ciena service delivery switch family (#11636) 2020-05-19 14:37:58 -05:00
joseUPV
abd9600ba4
Fix unit state sensor oid for aos6 (#11639)
* Fix unit state sensor oid for aos6

* added fixed aos6 test data
2020-05-19 14:36:20 -05:00
Tony Murray
d5a52ca4eb
Fix various issues with loading os definitions (#11640)
* Ping only device doesn't display
if os was set to something, ping os wasn't loaded and we try to get overview graphs from it.

* Fix snmp_disable device page load error
When other os is set.

* Revamp os setting loading
the only safe way to access is Config::getOsSetting()

* Remove getOsSetting fallback behavior
Most instances don't use it and it can have unexpected results Config::getOsSetting('blah', 'group') == 'librenms'

* refactor and remove unneeded load_os/loadOs calls now since getOsSetting automatically loads it.

* restore unix overview graphs, they are different
small cleanups

* fix
2020-05-19 14:35:32 -05:00
Jellyfrog
3985ce74ce
Update PHPUnit to 8.x (#11635)
* Shift return type of base TestCase methods

From the [PHPUnit 8 release notes][1], the `TestCase` methods below now declare a `void` return type:

- `setUpBeforeClass()`
- `setUp()`
- `assertPreConditions()`
- `assertPostConditions()`
- `tearDown()`
- `tearDownAfterClass()`
- `onNotSuccessfulTest()`

[1]: https://phpunit.de/announcements/phpunit-8.html

* Update PHPUnit to 8.x

Part of Laravel 6 upgrade

* Bump php versions

Co-authored-by: Laravel Shift <shift@laravelshift.com>
Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-05-19 16:31:50 +02:00
joseUPV
9ac05f48b8
AOS Advanced Support. (#11500)
* Comes from PR11322.

* Code changes to solve github-apply warnings. Removed aos tests.

* Added new aos tests.
2020-05-18 07:50:13 -05:00
KingJ
7bc2f9621a
Extend processor polling to Dell Powerconnect N1100 and N1500 series (#11631)
* Extend processor polling to Dell Powerconnect N1100 and N1500 series

* SNMP test data for Dell Powerconnect N1124T-ON

* SNMP test data for Dell Powerconnect N1148T-ON

* SNMP test data for Dell Powerconnect N1524P
2020-05-17 21:15:39 +02:00
PipoCanaja
b9c2f75092
Riedo E3Meter PDU (#11624)
* e3meter

* display

* tests
2020-05-16 10:14:46 +02:00
Facundo Caselles
2869a33ba5
Update Airos.php to match with Airos 8.x.x (#11400)
* Update Airos.php to match with Airos 8.x.x

Oid changed from AirMaxQuality (not used anymore), to Airtime

* Update Airos.php

* update airos.php to use wirelessUtilization

Using OID for UBNT-AirMMAX-MIB::ubntAirMaxAirtime.1 for wireless sensor utilization.

* Removed Airtime from quality

* Tests

* Update airos.json

* airos.snmprec reverted to previous state, and uploaded airos_airos8.snmprec

* Added airos8 snmprec

* Create airos_airos8.json

* Update airos.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-05-14 23:14:59 -05:00
Jellyfrog
ec57d3b669
Run artisan optimize after composer install (#11465)
* Remove unused routes

Prevents route:cache from working also

* Run artisan optimize after composer install

Helps cleaning up issues with upgrades, and also makes laravel a bit
faster

* Update composer.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-05-14 21:10:03 -05:00
Tony Murray
b573c9ef73
Implement OS specific information discovery (#11446)
* Implement OS specific information discovery
That way it doesn't have to be fetched during polling
Also improve discovery process, os is only detected once, in the core module.
EXA is the test os, a couple improvements there.

* Use local variable, then unset it so we don't pollute.

* fix style issues

* test and other fixes

* attribute update fixes

* Update exa data, need new source data

* null missing "os" values

* fix ftos odd character

* fix ftos odd character

* only null for new style or we will reset to null every discovery

* Move device observer to own class

* Handle location, relocate event logging

* update exa e7-2 data

* update ird test data, apparently unicode is now working.

* update Linux ntc, now uses correct icon

* Only load all os on the web, also, we can't load existing the the database isn't connected.

* only for devices that have a location

* revert ftos test data apparently

* revert ird
2020-05-14 11:27:59 -05:00
Tony Murray
f80ff5266d
Fix Papouch detection too generic (#11540) 2020-05-13 23:38:00 -05:00
PipoCanaja
804bb22a5a
Correct options for IBMC version polling (#11587)
* Correct options for version polling

* Update ibmc.json
2020-05-12 16:09:18 -05:00
Alexander Moisseev
0900f9513e
Add serial for QTECH QSW-3400 (#11569) 2020-05-10 22:08:07 +02:00
Jozef Rebjak
3b79ca0e79
Added warmStart trap handler (#11583)
* Added warmStart Trap

* Added warmStart Trap Test
2020-05-10 21:50:19 +02:00
Jozef Rebjak
44f3dea8e8
Fixed issues with IMCO Power (#11559)
* Fixed Issues with IMCO Power

* Fixed TRAVIS
2020-05-10 21:48:34 +02:00
Tony Murray
73ac93d729
Fix errors for some devices loading components (#11527)
* Test WIP

* WIP

* port getComponents to Eloquent

* port more

* simpler creation

* change to explicit arrays

* add missed file

* restore commented code

* fix inserting null value for component prefs

* Fix some bugs in setCompenentPrefs
Can't create tests without fixing bugs first :D

* another test

* another test

* Modernize setComponentPrefs

* Test for event log entries

* Fix delete event

* fix invalid values for component toggles

* status log too

* Use Setters to work around bad data, $casts doesn't do what we want.
2020-05-08 00:30:56 -05:00
Alexander Moisseev
25330646f6
New OS: QTECH (#11556)
* New OS: QTECH

https://www.qtech.ru/en/catalog/

* QTECH: Add hardware, version and serial support

* QTECH: Fix platform and software version detection

* QTECH: Add test for QSW-3450
2020-05-06 23:34:02 +02:00
arrmo
280e010286
Updates to Brother Printer (#11532)
Fixes issues observed in LibreNMS (timeouts, missing data)
Manual snmpwalk vs. snmpbulkwalk confirmed no bulk support
Missing toner, network, etc. information now seen in LibreNMS!
2020-05-06 23:30:35 +02:00
Damon Reed
53b75b289e
Added bgpPeerDescr for Arista OS (#11495) 2020-05-06 00:51:39 +02:00
Vitali Kari
1108f7d530
MPLS updates and bugfixing (#11468)
* MPLS updates and bugfixing

* Tests

* tests

* code climate, tests

* tests

* tests

* remove nokiaIfName(), fetch ifName from the database instead

* restore from messed rebase

* tests

* btw, fix travis about the missing docs

* tests

* tests

* clean the messed up test data an generate new for timos

* rebase
2020-05-01 23:05:51 -05:00
Tony Murray
0e9cd8fbc4
SIAE Radio: add additional sensors and data (#11498)
* SIAE add additional sensors and data
Improved labels
Modulation
Rate
Serial Number
Hardware name

* Add total rates

* was supposed to be divisor

* Short array syntax
2020-05-01 22:11:35 -05:00
Adam Bishop
ce8de5cb18
Support FreeNAS/TrueNAS 11.3 (#11494)
* Support FreeNAS/TrueNAS 11.3

Seems the latest release changes the SysObjectID from FreeBSD to
their own enterprise number.

I've left the old FreeBSD enterprise number in place, so both
older and newer releases will be detected.

* Test data
2020-04-28 15:50:00 +02:00
Adam Bishop
83dd1f0a16
Detection, sensors and zpool/dataset usage for FreeNAS, TrueNAS (#11474)
It's also possible to do zpool IO from the MIB, but diskIO on
LibreNMS makes a lot of assumptions about it coming from the UCD
MIB.

This changeset adds detection for FreeNAS and TrueNAS - despite
having their own enterprise number, the snmpd uses the FreeBSD
one.

The naming is a bit all over the place, because this reflects
reality - IXSystems produce FreeNAS and TrueNAS, the product lines
have merged to eliminate FreeNAS, but TrueNAS still calls itself
FreeNAS everywhere except the GUI.
2020-04-27 17:23:44 +02:00
gonzocrazy
eb76218127
Opengear add mempool discovery+polling (#11491)
* opengear MemPools

Discovery and Polling of opengear mempools - opengear Detail Memory Usage is already collected however that can not be used to trigger rules.

* add test

opengear mempools tests

* remove newline
2020-04-27 09:04:57 +02:00
Jurrian van Iersel
d61cfb5688
Added sensors for outlets on Schleifenbauer devices. (#10949)
* Added sensors for outlets on Schleifenbauer devices. Also use the outlet name when configured.

* Updated tests for Schleifenbauer

* Fixed on test for Schleifenbauer

* Optimized polling by retriving only outlets from the device with the network connection, not all devices on the data-bus.

* Fixed code styling

* Use shorthand comparisons for names

* Fix for conflicting $entPhysicalIndex
2020-04-27 00:35:00 +02:00
Adam Bishop
3690ca4928
Add OS detection for Greenbone appliances (#11464)
* Add OS detection for Greenbone appliances

They don't expose anything fancy over SNMP, but this makes them
display interface names correctly. Under the hood they're unix-y.

Greenbone logo is from the AGPLv3 gsa, which is GPL compatible:
https://github.com/greenbone/gsa/blob/master/gsa/public/img/greenbone.svg

The mib is included for completeness, but it doesn't expose any
graphable values.

* Fix the vendor's logo
2020-04-26 13:11:49 +02:00
Tony Murray
d4225806a8
Run docs tests when only docs are modified. (#11483) 2020-04-25 21:43:03 -05:00
Mathieu Poussin
fc391090e1
BGP Polling: Add error code management (#11424)
* BGP Polling: Add error code polling

* Rework describe_bgp_error_code and fix bgp error fields migration

* Add real test data for IOS-XR and Arista EOS
2020-04-24 22:47:20 -05:00
Adam Bishop
b7b298806f
OS detection and sensors for Dell Compellent (#11467)
* OS detection and sensors for Dell Compellent

... or Dell storage as it is now known. Under the hood it's
referred to as Compellent, so I've named it as that to avoid
confusion.

It is not part of the Dell group or using the Dell MIB folder -
Dell have doubled up on some OID definitions, which means the MIB
here and a couple of the existing ones conflict.

The change adds OS detection and a frankly ludicrous amount of
sensors. I have access to a relatively low end device, so at the
moment everything under *ctlr* is my best guess based on the other
table layouts.

* Set sensor state_name to avoid collisions

* Regenerate test data
2020-04-23 22:58:22 -05:00
arrmo
e3c1a3bbef
Add OS version to asuswrt-merlin (#11438)
* Add OS version to asuswrt-merlin

* Add test data, for latest asuswrt-merlin updates

* Updated / corrected test files, snmprec and json
2020-04-23 22:50:30 -05:00
robwilkes
daebf8c765
Cisco sensor discovery fixes (#11077)
* Sev and Rel terminology varies between devices

* Most temp sensors don't have low limits, so adding

* update test data

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-04-23 22:30:27 -05:00
priiduonu
4df3310d4d
Fix: Raspberry Pi frequency sensors discovery (#11460)
* Fix: Raspberry Pi frequency sensors discovery

* updated test data

* update test data again

* fixed Raspberry Pi codec states
2020-04-22 21:53:27 -05:00
Wheel
59222847b9
Ubiquiti Airfiber LTU many more sensors (#11382)
* Update AFLTU mib

* Airfiber LTU details

* More detailed graphs for Ubiquiti AF-LTU

* Travis fix

* Cleanup and Modulation change

* Ethernet port status

* SNMPrec

* SNMP data json
2020-04-22 01:30:35 -05:00
mathieu-oui
5c52403dd1
Fix PanOS Sessions count and add Vsys and other sensors (#11341)
* fix panos sessions and sslproxy

* add test file

* update mibs

* add tests

* test correction

* delete useless line

* correction

* correction mib

* Add additional sensors

* test data

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-04-22 01:27:54 -05:00
Adam Bishop
4c14efb375
Fix routing engine discovery on standalone JunOS devices (#11381)
* Fix routing engine discovery on standalone JunOS devices

In #9426, the sensor discover code was replaced with YAML.
Unfortunately it treats the FRU table as standalone OIDs, and did not
implement the filtering that was present in the original code.

This change causes LibreNMS to fully walk the FRU table, which allows us
to silence alerting on devices with an 'unknown' status. Without this
change, standalone devices have a spurious routing engine with state 1,
which triggers false harware failure alerts.

As we're changing the name of the sensors, this causes a loss of sensor
history.

This has been brought up on community a couple of times:
  https://community.librenms.org/t/juniper-qfx-routing-engine-state-alert/6152
  https://community.librenms.org/t/spurious-failed-routing-engine-from-some-junos-devices/6208

* Update test data

* Update test data

* Update test data

* Update test data

* This syntax works, but fails linting
2020-04-22 01:23:51 -05:00
Jellyfrog
a04c8c0b84
Replace deprecated @expectedException (#11451)
Deprecated in phpunit 8
2020-04-21 07:27:13 -05:00
Tony Murray
64817209eb
fix class names (#11441) 2020-04-20 21:17:14 +02:00
Lars Elgtvedt Susaas
b3d1b97a3b
Addhost tests (#11385)
* Create addhostCliTest.php

Added test for addhost.php cli tool

* Added test for addhost function

Added tests and fixed code in order for the function to be able to run with default parameter

* Create addhostTest.php

added tests for addhost function

* Update addhostCliTest.php

Changed from testing addhost.php to Artisan command 'device:add'

* remove delhost exec

* remove delhost

* Remove isn't needed, transactions are used.

* Remove unneeded, transactions are used.

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-04-19 17:36:01 -05:00
Jozef Rebjak
bb9ebb4e45
Added support for Peplink Pepwave & FusionHub (#11432)
* Added support for Peplink Pepwave & FusionHub

* Travis fixes

* Another Travis fixes

* Travis fixed

* Travis fixes

* Update peplink.svg

* Resolved reviews

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-04-19 10:28:21 -05:00
Tony Murray
1c08c11a77
Remove Laravel helpers (#11428)
* Remove Laravel helpers

* Replace qualifier with import
2020-04-18 00:37:56 +02:00
Tony Murray
729eeccaa4
Update BGP test data (#11433)
* Update BGP test data
Leave astext for now

* .....
2020-04-17 14:40:45 -05:00
RobJE
3afdbb71c8
APC polling copy-n-paste error (#11429)
* fix a copy-n-paste error

* correct test data
2020-04-17 14:24:10 +02:00
PipoCanaja
d67b34b934
Added device Netvision with rfc1628 support (#11426) 2020-04-16 09:12:24 +02:00
Mikkel Mondrup Kristensen
212c9aad95
Add support for Advantech switches (#11415)
* Add Advantech logo.

Taken from https://commons.wikimedia.org/wiki/File:Advantech_logo.svg
with minor edits (removed width and height).

* Add Advantech MIB files.

* Add Advantech definitions.

* Add suppor for version and hardware polling.

* Add advantech snmp recording.

* Add sensors for SFP ports

Each SFP will have temperature, voltage, tx bias, Tx/Rx power.
Also update snmp recording to include new data.

* Rename ADVANTECH-EKI-PRONEER-MIB_1_01.mib to ADVANTECH-EKI-PRONEER-MIB

* Rename advantech-common-mib.mib to ADVANTECH-COMMON-MIB

* Update advantech.yaml

* Update advantech.svg

* Create advantech.json

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2020-04-14 11:05:22 +02:00
James French
bc16d35d65
Added hardware detection for FreeBSD (#11313)
* Added hardware detection for FreeBSD

* Clean-up unnecessary str_replace

* Cleanup str_replace() in existing code

* Added OS module tests for FreeBSD Hardware Detect

* Create freebsd.json

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2020-04-12 11:16:19 -05:00
Noah Roufus
e37417e6c2
Added support for ICT Modular Power System and ICT Sine Wave Inverter (#11182)
* Added support for ICT Modular Power System and ICT Sine Wave Inverter

* Added SNMP test data for ICT Modular Power System and ICT Sine Wave Inverter

* Fixed styling errors and refactored state sensor for ICT Sine Wave Inverter

* Fixed newly created styling issues from refactoring ICT Sine Wave Inverter files.

* Fixed further styling errors from previous changed to appease Travis CI

* Removed unnecessary math from ICT Sine Wave Inverter voltage sensor

* Cleaned up unnecessary lines in ict-mps/ict-swi sensors. Moved from snmp_get to snmp_get_multi in ict-mps/ict-swi os pollers.

* Added test data for ICT MPS and SWI

* Fixed issue with load sensor not discovering

* Update snmpget to snmp_get

Co-Authored-By: Jellyfrog <Jellyfrog@users.noreply.github.com>

* Updated test data post-fixing sensor detection issue on ICT Sine Wave Inverters

* Moved ict-swi and ict-mps from legacy to yaml sensors

* Removed legacy code for ict-mps and ict-swi sensors

* Last commit mistakenly removed OS polling from ict-mps and ict-swi

* Fixed formatting for OS polling and updated test data for ict-mps and ict-swi

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2020-04-12 10:42:57 +02:00
Tony Murray
790ef61b0d
Small test speedup (#11411)
Use Log::event() inside log_event()
Mock Log::event() in module tests to prevent writing to the database.
2020-04-11 19:53:25 -05:00
Heath Barnhart
d6de5cb67b
CyberPower SNMP Traps (#11403)
* Initial Commit of Handlers

* Starting unit tests

* Completed Unit Tests
2020-04-10 13:27:15 +02:00
PipoCanaja
3fb46710a6
Added support for RIEDO data concentrator (#11237)
* Riedo E3Meter DataConcentrator

* Riedo E3Meter DataConcentrator Image

* logos

* name

* Freq + Power

* Power

* Tests + standalone riedo mib

* tests
2020-04-10 13:24:49 +02:00
PipoCanaja
ad1c7d0e19
IPv6 support for BGP peers in VRP devices (#11243)
* ipv6 support for BGP routes in VRP devices

* reverse bgpPeers array to allow VRF aware BGP

* codeclimate

* codeclimate

* codeclimate, finally

* Split VRP out of bgp-peers for readabilty

* Split VRP out of bgp-peers for readabilty

* tests

* CodeClimate

* improve function description

* improve function description

* v6data

* rebase

* space

* ipv6 support for BGP routes in VRP devices

* reverse bgpPeers array to allow VRF aware BGP

* codeclimate

* codeclimate

* codeclimate, finally

* Split VRP out of bgp-peers for readabilty

* Split VRP out of bgp-peers for readabilty

* tests

* CodeClimate

* improve function description

* improve function description

* v6data

* rebase

* space

* fixed corner case
2020-04-10 13:22:26 +02:00
PipoCanaja
07d4da21ca
Add support for Ascom IPBS (#11308)
* ascom support

* tests

* typo

* Correct missing 'mpls' in misc/os_schema.json

* remove mpls for now

* tests

* Update ascom.svg

* Don't disable already disabled modules

As I usually state, not much gain in disabling these here.   Would be better to optimize the modules if you think they take too long on devices that don't have support.

* refactor polling code

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-04-10 13:21:25 +02:00
Martin22
c379fee161
Add support Ray3 (#11374)
* Add support Ray3

* Create ray3.json

* Fixed copyrights, comments and move MIB file.

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-04-05 17:13:22 +02:00