18216 Commits

Author SHA1 Message Date
1f5384172a Add mempools, cpu and storage to some arbor devices (#12444)
* Add mempools, cpu and storage to some arbor devices

* Update test data

* Precision must be int - remove
2021-01-19 10:21:23 -06:00
709d1b6f56 Add planet-pdu os device (#12441)
* Planet-PDU OS

* fix sysdescr

* fix sysdescr2

* fix sysdescr2
2021-01-18 16:11:53 -06:00
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
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
7b4d9d5bae Enumerate sensors under the Outlet for the entity-physical inventory (#12439) 2021-01-15 16:36:50 +01:00
c06922de43 Nokia sap graph (#12432)
* SAP counters to database

* making rrd works

* Finished SAP polling + graphing

* cleaning up

* resolved ./lnms dev:check failure

* added db_schema and fixed style

* Fixed style

* recoverd file

* fixed

* Clean up

* fixed

* using  graphPopup function
2021-01-15 08:28:22 -06:00
b07b81021a Output image for graphs with no data (#11865)
* Output image for graphs with no data

* add font

* Fix graph error, try to detect rrd missing

* centralize graph_error
use it for graph_text_and_exit()

* Add SVG, right now the text can get a little big...

* fix style
2021-01-13 07:23:47 -06:00
ed41e6eedc Fix Gaia HA sensors (#12429)
* Fix Gaia HA sensors

* remove ospf again
2021-01-11 22:09:16 +01:00
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
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
ecd177f12b Update php dependencies (#12425)
asm89/stack-cors (v2.0.1 => v2.0.2)
barryvdh/laravel-debugbar (v3.5.1 => v3.5.2)
barryvdh/laravel-ide-helper (v2.8.1 => v2.9.0)
clue/socket-raw (v1.4.1 => v1.5.0)
composer/composer (1.10.16 => 2.0.8)
composer/semver (1.7.1 => 3.2.4)
composer/spdx-licenses (1.5.4 => 1.5.5)
composer/xdebug-handler (1.4.4 => 1.4.5)
doctrine/annotations (1.11.0 => 1.11.1)
doctrine/dbal (2.12.0 => 2.12.1)
doctrine/instantiator (1.3.1 => 1.4.0)
dragonmantank/cron-expression (v3.0.2 => v3.1.0)
egulias/email-validator (2.1.22 => 2.1.25)
facade/ignition (2.4.1 => 2.5.8)
fico7489/laravel-pivot (3.0.3 => 3.0.7)
filp/whoops (2.9.0 => 2.9.1)
friendsofphp/php-cs-fixer (v2.16.4 => v2.17.3)
fzaninotto/faker (v1.9.1 => v1.9.2)
influxdb/influxdb-php (1.15.1 => 1.15.2)
laravel/dusk (v6.8.0 => v6.11.0)
laravel/framework (v8.11.2 => v8.21.0)
laravel/tinker (v2.4.2 => v2.5.0)
laravel/ui (v3.0.0 => v3.2.0)
league/commonmark (1.5.6 => 1.5.7)
maximebf/debugbar (v1.16.3 => v1.16.4)
monolog/monolog (2.1.1 => 2.2.0)
myclabs/deep-copy (1.10.1 => 1.10.2)
nesbot/carbon (2.41.5 => 2.43.0)
nikic/php-parser (v4.10.2 => v4.10.4)
nunomaduro/collision (v5.0.2 => v5.1.0)
nunomaduro/laravel-console-summary (v1.7.0 => v1.7.1)
opis/closure (3.6.0 => 3.6.1)
phar-io/version (3.0.2 => 3.0.4)
php-webdriver/webdriver (1.8.3 => 1.9.0)
phpmailer/phpmailer (v6.1.8 => v6.2.0)
phpseclib/phpseclib (2.0.29 => 2.0.30)
phpspec/prophecy (1.12.1 => 1.12.2)
phpunit/php-code-coverage (9.2.1 => 9.2.5)
phpunit/phpunit (9.4.2 => 9.5.0)
psy/psysh (v0.10.4 => v0.10.5)
sebastian/comparator (4.0.5 => 4.0.6)
sebastian/complexity (2.0.1 => 2.0.2)
sebastian/global-state (5.0.1 => 5.0.2)
sebastian/lines-of-code (1.0.1 => 1.0.3)
seld/jsonlint (1.8.2 => 1.8.3)
staudenmeir/dusk-updater (v1.2.1 => v1.2.2)
swiftmailer/swiftmailer (v6.2.3 => v6.2.4)
symfony/console (v5.1.7 => v5.2.1)
symfony/css-selector (v5.1.7 => v5.2.1)
symfony/debug (v4.4.15 => v4.4.18)
symfony/error-handler (v5.1.7 => v5.2.1)
symfony/event-dispatcher (v5.1.7 => v5.2.1)
symfony/filesystem (v5.1.7 => v5.2.1)
symfony/finder (v5.1.7 => v5.2.1)
symfony/http-foundation (v5.1.7 => v5.2.1)
symfony/http-kernel (v5.1.7 => v5.2.1)
symfony/mime (v5.1.7 => v5.2.1)
symfony/options-resolver (v5.1.7 => v5.2.1)
symfony/polyfill-ctype (v1.20.0 => v1.22.0)
symfony/polyfill-iconv (v1.20.0 => v1.22.0)
symfony/polyfill-intl-grapheme (v1.20.0 => v1.22.0)
symfony/polyfill-intl-idn (v1.20.0 => v1.22.0)
symfony/polyfill-intl-normalizer (v1.20.0 => v1.22.0)
symfony/polyfill-mbstring (v1.20.0 => v1.22.0)
symfony/polyfill-php72 (v1.20.0 => v1.22.0)
symfony/polyfill-php73 (v1.20.0 => v1.22.0)
symfony/polyfill-php80 (v1.20.0 => v1.22.0)
symfony/process (v5.1.7 => v5.2.1)
symfony/routing (v5.1.7 => v5.2.1)
symfony/stopwatch (v5.1.7 => v5.2.1)
symfony/string (v5.1.7 => v5.2.1)
symfony/translation (v5.1.7 => v5.2.1)
symfony/var-dumper (v5.1.7 => v5.2.1)
symfony/yaml (v4.4.15 => v4.4.18)
voku/portable-ascii (1.5.3 => 1.5.6)
wpb/string-blade-compiler (6.0.2 => 6.0.3)

remove scrivo/highlight.php (v9.18.1.3)
2021-01-09 19:33:08 +01:00
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
53bc78c9d9 CVE-2020-35700 (#12422)
* CVE-2020-35700

* wip

* Update function to match usage

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-01-07 12:44:27 +01:00
d7e88bf311 Upgrade to Laravel Mix 6 (#12421) 2021-01-06 20:18:43 -06:00
2753d6fbb4 Bump axios from 0.19.2 to 0.21.1 (#12420)
Bumps [axios](https://github.com/axios/axios) from 0.19.2 to 0.21.1.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v0.21.1/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.19.2...v0.21.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-05 17:06:27 +01:00
03d562f587 Remove Travis support (#12416)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-01-04 21:17:55 -06:00
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
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
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
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 ac7c0d5610014185be50277801db1c7c3f06e59c.

* snmpsim + test data for OS schleifenbauer variant dpm27e
2021-01-03 21:14:33 +01:00
77c534050a Eltek Enexus: Disable some battery sensors if no battery bank is installed (#12367) 2021-01-03 18:59:38 +01:00
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
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
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
590b3ad123 Show Device Group on Map (#12379)
* Show Device Group on Map

* style fix

* .

* .
2021-01-02 22:06:52 +01:00
7f93e2220d Update functions.inc.php (#12406)
I think left and right text is inverse. Example in page with all processor, percent_used is at the right instead of left
2021-01-02 00:47:41 +01:00
1536b32907 Fix broken evaulation on auto discovery (#12408)
My Cisco IP phones were still being auto discovered even when i had autodiscovery.xdp set to false, and it wasn't ignoring them for the auto discovery regex either. This statement had some misplaced Parenthesis. Working now on my install with this fix.
2021-01-02 00:22:55 +01:00
c6c046f172 Document flattened Inventory API function (#12404) 2021-01-02 00:07:33 +01:00
9f591c0aa2 Update Documentation (#12411)
* Update Documentation

Most work in Graylog and SNMP
Fixed many code tags, spelling and wording.
Added SNMP PowerShell example.

* Update SNMP-Configuration-Examples.md

Fix TOC brackets
2020-12-30 15:38:14 +01:00
c3d47dee4a Apply fixes from StyleCI (#12412) 2020-12-30 15:37:08 +01:00
9c248d1b52 Doc - Increase Nginx Timeout (#12368)
* Doc - Increase Nginx Timeout
2020-12-30 14:38:59 +01:00
64601866ac Update OPNsense version Regex, for _ releases (#12407)
Update OPNsense version Regex, for when underscores are used in OPNsense releases.
2020-12-29 23:53:00 +01:00
9ccb707335 Update Distributed-Poller.md Discovery using dispatcher service (#12387)
* Update Distributed-Poller.md

Clarify discovery when using dispatcher service. The limitation of running one discovery per server is only for cron based polling.

* Update Distributed-Poller.md

Co-authored-by: Neil Lathwood <gh+n@laf.io>
2020-12-17 21:17:59 +00:00
8e718d6e4f don't show gelocation on snmp location string (#12384) 2020-12-12 18:06:04 +01:00
d23ed0dd6e Update to incorporate new locking mechanisms (#12388) 2020-12-12 18:02:11 +01:00
42df05c947 Bump ini from 1.3.5 to 1.3.8 (#12395)
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-12 18:00:52 +01:00
980e4a6a28 Update docs for raspberry.sh (#12389)
When using the original docs for the raspberry.sh script all I got in the SNMP output was `nsExtendOutLine."raspberry".1 = sudo: No such file or directory`

this can be fixed by using the complete path to the sudo command.
2020-12-10 01:02:30 +01:00
a3635d0b73 remove unused openssl_ver (#12378) 2020-12-03 09:33:26 -06:00
e2fb7ba635 Fix version compare (#12376)
* Fix daily.sh version compare

* 1.70.1
1.70.1
2020-12-02 08:39:06 -06:00
84c08f424c Bump version to 1.70.0 1.70.0 2020-12-01 22:01:19 -06:00
4ae5f76fe8 Changelog for 1.70.0 2020-12-01 22:01:17 -06:00
25087a6828 added expiration for alerts cache::lock() (#12375) 2020-12-01 18:16:15 -06:00
ff49d7c42b Auth add ip to auth failure log entry (#12374) 2020-12-01 14:00:58 -06:00
0a7586b9ff Fix php min version (#12372) 2020-12-01 08:45:53 +01:00
a0062aa633 Remove hardcoded URLs to doc (#12364)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-11-27 23:34:58 +01:00
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
bb7e34d8af Added Eltek SmartPack2 Syst. (#12352) 2020-11-26 00:11:11 -06:00
d8c617d2ae GitHub Actions for doc (#12353)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-11-25 22:18:02 +00:00
927fac6ca7 Fix bad link in docs (#12357) 2020-11-25 11:40:35 -06:00
39f6b35bf0 Respect device access for health mempools page (#12356) 2020-11-25 10:43:57 -06:00