20880 Commits

Author SHA1 Message Date
a7aaaac103 Fix alert detail count missing (try2) (#16309) 24.8.1 2024-08-21 21:50:00 -05:00
c7c8f5dfc1 Fix sodium_compat 32bit (#16303)
Fix upstream stupidity.  They required 32bit in 2.0.0, but didn't mark it then released 2.0.1 to fix that, but didn't pull 2.0.0.
Add explicit requirement for <2.0 to avoid the whole mess for now.  But that means we'll have to fix it down the road again.
2024-08-21 21:49:25 -05:00
f6fe0cf2da Bump version to 24.8.0 24.8.0 2024-08-15 15:14:10 -05:00
d786f6ef40 Changelog for 24.8.0 2024-08-15 15:14:09 -05:00
38e453fe71 device - Adding support to Infortrend DS3016 (#16070)
* Adding support to Infortrend DS3016
* Adding snmprec for Infortrend DS3016
* Delete tests/snmpsim/DS_3016.snmprec
* change of the infortrend logo
* add the infortrend logo
* Delete tests/snmpsim/infortrend_test.snmprec
* again another logo replacment
* update yaml file to display sensor state
* Delete includes/definitions/discovery/infortrend_orig
* typo missed the . at start of oid
* change logo based on req. from PipoCanaja
* on req of PipoCanaja to fix the structure of the folder
* replacing the logo as req. from PipoCanaja
* Fix infortrend.yaml
* Remove mibs/IFT-SNMP-MIB
* Create infortrend_infortrend.json
* Update infortrend_infortrend.json

---------

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2024-08-15 11:06:13 +02:00
faac90fadc webui - More details for alerts concerning mempools and services (#16259)
Improve display of alerts_details with mempools. & servcices
* DescrForMempoolInAlerts
* more
* services
2024-08-15 10:43:48 +02:00
0e741e365a Mark addhost.php as deprecated (#16283)
Use lnms device:add instead
2024-08-14 09:15:32 -05:00
9455173edc Fix alert bug when key missing (#16281) 2024-08-12 12:21:14 -05:00
c2770c6f19 Remove file differing by case only (#16280) 2024-08-12 11:24:02 -05:00
f296464dae validate.php proper exit code (#16274)
some fixes around database & poller checks
2024-08-08 20:00:56 -05:00
b62a4bacd4 bug - Fix CISCO-BGP4-MIB logic (#16260)
* Fix CISCO-BGP4-MIB logic

* style

* tests

* tests suite
2024-08-06 21:19:50 -05:00
cc971b6233 Fix runtime cache (#16272)
Fix runtime cache when redis is enabled, but not running
2024-08-06 13:11:44 -05:00
d1ee543b6b bug - Fixing 'cisco-pw' cpwVcMplsPeerLdpID (#16268)
* fix for cpwVcMplsPeerLdpID in IP form

* tests
2024-08-03 12:57:33 -05:00
549741d31e fix splitting of perfdata (#16255) 2024-08-03 19:31:07 +02:00
447f06599e Bump postcss from 7.0.39 to 8.4.40 (#16262)
Bumps [postcss](https://github.com/postcss/postcss) from 7.0.39 to 8.4.40.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/7.0.39...8.4.40)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-03 16:21:29 +02:00
b2ac944b59 [webui] sort vlan tooltip by vlanid (#16266) 2024-08-03 13:06:50 +02:00
c572448ca0 Update PHP dependencies (#16263)
* Update PHP dependencies:

php-http/discovery (1.19.2 => 1.19.4)
symfony/finder (v6.4.8 => v6.4.10)
symfony/polyfill-mbstring (v1.29.0 => v1.30.0)
symfony/var-dumper (v6.4.4 => v6.4.10)
maximebf/debugbar (v1.20.2 => v1.22.3)
symfony/polyfill-php80 (v1.29.0 => v1.30.0)
symfony/polyfill-ctype (v1.29.0 => v1.30.0)
phpoption/phpoption (1.9.2 => 1.9.3)
graham-campbell/result-type (v1.1.2 => v1.1.3)
vlucas/phpdotenv (v5.6.0 => v5.6.1)
symfony/css-selector (v6.4.3 => v6.4.8)
symfony/polyfill-uuid (v1.29.0 => v1.30.0)
symfony/uid (v6.4.3 => v6.4.8)
symfony/routing (v6.4.3 => v6.4.10)
symfony/polyfill-php72 (v1.29.0 => v1.30.0)
symfony/polyfill-intl-normalizer (v1.29.0 => v1.30.0)
symfony/polyfill-intl-idn (v1.29.0 => v1.30.0)
symfony/mime (v6.4.3 => v6.4.9)
symfony/event-dispatcher (v6.4.3 => v6.4.8)
symfony/mailer (v6.4.4 => v6.4.9)
symfony/polyfill-php83 (v1.29.0 => v1.30.0)
symfony/http-foundation (v6.4.4 => v6.4.10)
symfony/error-handler (v6.4.4 => v6.4.10)
symfony/http-kernel (v6.4.4 => v6.4.10)
symfony/polyfill-intl-grapheme (v1.29.0 => v1.30.0)
symfony/string (v6.4.8 => v6.4.10)
symfony/console (v6.4.8 => v6.4.10)
brick/math (0.11.0 => 0.12.1)
ramsey/uuid (4.7.5 => 4.7.6)
symfony/translation (v6.4.4 => v6.4.10)
nesbot/carbon (2.72.3 => 2.72.5)
monolog/monolog (3.5.0 => 3.7.0)
league/flysystem (3.24.0 => 3.28.0)
league/flysystem-local (3.23.1 => 3.28.0)
dflydev/dot-access-data (v3.0.2 => v3.0.3)
league/commonmark (2.4.2 => 2.5.1)
laravel/framework (v10.46.0 => v10.48.18)
laravel/prompts (v0.1.16 => v0.1.24)
barryvdh/laravel-debugbar (v3.10.5 => v3.13.5)
phpstan/phpdoc-parser (1.26.0 => 1.29.1)
nikic/php-parser (v5.0.1 => v5.1.0)
doctrine/event-manager (2.0.0 => 2.0.1)
doctrine/dbal (3.8.2 => 3.8.6)
composer/pcre (3.1.4 => 3.2.0)
composer/class-map-generator (1.3.3 => 1.3.4)
symfony/polyfill-php81 (v1.29.0 => v1.30.0)
symfony/polyfill-php73 (v1.29.0 => v1.30.0)
symfony/filesystem (v6.4.8 => v6.4.9)
seld/jsonlint (1.10.2 => 1.11.0)
justinrainbow/json-schema (v5.2.13 => 5.3.0)
composer/semver (3.4.0 => 3.4.2)
composer/ca-bundle (1.5.0 => 1.5.1)
fico7489/laravel-pivot (3.0.11 => 3.0.12)
firebase/php-jwt (v6.10.1)
symfony/stopwatch (v6.4.3 => v6.4.8)
symfony/options-resolver (v6.4.0 => v6.4.8)
sebastian/diff (4.0.5 => 4.0.6)
react/event-loop (v1.5.0)
evenement/evenement (v3.0.2)
react/stream (v1.4.0)
react/cache (v1.2.0)
react/dns (v1.13.0)
react/socket (v1.16.0)
react/child-process (v0.6.5)
fidry/cpu-core-counter (1.1.0)
clue/ndjson-react (v1.3.0)
friendsofphp/php-cs-fixer (v3.51.0 => v3.61.1)
guzzlehttp/promises (2.0.2 => 2.0.3)
psr/http-factory (1.0.2 => 1.1.0)
php-http/message (1.16.0 => 1.16.1)
php-http/promise (1.3.0 => 1.3.1)
influxdata/influxdb-client-php (3.4.0 => 3.6.0)
guzzlehttp/psr7 (2.6.2 => 2.7.0)
guzzlehttp/guzzle (7.8.1 => 7.9.2)
phpstan/phpstan (1.10.59 => 1.11.9)
larastan/larastan (v2.9.2 => v2.9.8)
symfony/http-client (v6.4.4 => v6.4.10)
spomky-labs/pki-framework (1.1.1 => 1.2.1)
paragonie/sodium_compat (v1.20.0 => v2.0.1)
paragonie/constant_time_encoding (v2.6.3 => v3.0.0)
web-token/jwt-library (3.3.1 => 3.4.6)
web-token/jwt-util-ecc (3.3.0 => 3.4.6)
web-token/jwt-signature-algorithm-ecdsa (3.3.0 => 3.4.6)
web-token/jwt-signature (3.3.0 => 3.4.6)
web-token/jwt-key-mgmt (3.3.0 => 3.4.6)
psy/psysh (v0.12.0 => v0.12.4)
laravel/ui (v4.4.0 => v4.5.2)
librenms/laravel-vue-i18n-generator (dev-master c662202 => dev-master 8c8bb89)
mews/purifier (3.4.1 => 3.4.2)
mockery/mockery (1.6.7 => 1.6.12)
nunomaduro/laravel-console-summary (v1.10.0 => v1.11.1)
phpseclib/phpseclib (3.0.36 => 3.0.39)
php-amqplib/php-amqplib (v3.6.1 => v3.7.0)
php-parallel-lint/php-parallel-lint (v1.3.2 => v1.4.0)
phpstan/phpstan-deprecation-rules (1.1.4 => 1.2.0)
sebastian/resource-operations (3.0.3 => 3.0.4)
sebastian/global-state (5.0.6 => 5.0.7)
sebastian/exporter (4.0.5 => 4.0.6)
sebastian/cli-parser (1.0.1 => 1.0.2)
theseer/tokenizer (1.2.2 => 1.2.3)
phpunit/php-code-coverage (9.2.30 => 9.2.31)
phar-io/manifest (2.0.3 => 2.0.4)
myclabs/deep-copy (1.11.1 => 1.12.0)
phpunit/phpunit (9.6.17 => 9.6.20)
laravel/socialite (v5.12.1 => v5.15.1)
socialiteproviders/manager (v4.5.1 => v4.6.0)
spatie/error-solutions (1.1.1)
spatie/backtrace (1.5.3 => 1.6.2)
spatie/flare-client-php (1.4.4 => 1.8.0)
spatie/ignition (1.12.0 => 1.15.0)
spatie/laravel-ignition (2.4.2 => 2.8.0)
symfony/yaml (v6.4.3 => v6.4.8)

* Update dusk version to fix bug

* Update base DuskTestCase to match upstream

* Minor phpstan type changes

* add more types
2024-08-02 22:23:31 -05:00
a61cd16f86 Nac polling improvement (#16265)
* Nac polling improvement
Was loading all nac entries from the DB, then filtering them. Now it only loads non-historical entries off the bat.
All this because the filter was returning the wrong type...

* Add missing get
2024-08-02 20:44:47 -05:00
2d2ddddd5d Remove FILTER_SANITIZE_STRING (#16264)
It is deprecated, all the code using it is sus
2024-08-02 16:24:51 -05:00
d67df039e3 device - Added Baicells Atom OD04 CPE support (#14838)
This adds a MIB from the Baicells website, lightly modified
(s/BAICELLS-MIB/BAICELLS-CPE-MIB), and yaml files for LibreNMS. Currently OS
detection works, but sensors are reporting '0'.

I can easily get the data with snmpget, so I know that part is working. The
issue I'm seeing looks like the {{ $index }} substitution in my sensor yaml
isn't being filled out. Here's some example output from poller.php that backs
this up:

```
.1.3.6.1.4.1.53058.2.2.7.: Unknown Object Identifier ()
.1.3.6.1.4.1.53058.2.2.8.: Unknown Object Identifier ()
.1.3.6.1.4.1.53058.2.2.12.: Unknown Object Identifier ()
.1.3.6.1.4.1.53058.2.2.13.: Unknown Object Identifier ()
```

* adjustments to baicells od04

* undo modification to mib

* add original unmodified mib, tweak yaml, add time conversion function

* added baicells od04 snmprec

* skip invalid values

* Rename baicells-od04.snmprec.txt to baicells-od04.snmprec

* Update and rename BaiCE-BM-2.5.23_SNMP_MIB-CAT4.txt to BAICELLS-MIB

* Update baicells-od04.yaml

* Create BaicellsOd04.php

* move userfunc into OS

* style

* squash php casting warning

* missing static

* style

* fix {{ $index }}

* Create baicells-od04.json

---------

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2024-08-02 19:18:17 +02:00
624099cf9f Add support for GUDE Expert Sensor Box (#16257) 2024-08-01 22:34:28 +02:00
a346a4ad8e [webui] fix port_row.blade generate vlan link (#16256) 2024-08-01 22:19:47 +02:00
4777247327 Cleanup - Ensure percentage is calculated out of positive values only (#16250)
* Percentage and positivity

* fix bug victims hpe-ilo
2024-07-31 09:37:07 -05:00
7ba06e090f Update Devices.md (#16252)
Fix typos
2024-07-31 09:35:52 -05:00
520e44b0ed F5-Loadbalancer module to support an expiration check of the installed certificates (#16217)
* On branch f5-cert-expiration-check
Changes to be committed:
	modified:   app/Http/Controllers/Device/Tabs/LoadBalancerController.php
	modified:   includes/discovery/loadbalancers/f5-ltm.inc.php
	modified:   includes/html/pages/device/loadbalancer.inc.php
	new file:   includes/html/pages/device/loadbalancer/f5-cert.inc.php
	modified:   includes/polling/loadbalancers/f5-ltm.inc.php

These patches extend the F5-Loadbalancer module to support an expiration check of
the installed certificates.

* some minor corrections to (hopefully) pass the style-check

* a few more impovements to pass the style-chek

 On branch f5-cert-expiration-check
 Your branch is up to date with 'origin/f5-cert-expiration-check'.

 Changes to be committed:
	modified:   includes/discovery/loadbalancers/f5-ltm.inc.php
	modified:   includes/polling/loadbalancers/f5-ltm.inc.php

* more style-check adaptions...
2024-07-29 14:57:37 -05:00
903ed58fc3 add bgp peer description to alert_detail (#16233)
* add bgp peer description to alert_detail

* style

---------

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2024-07-29 14:54:10 -05:00
03bbf5ed7a sensor - add skip_values to hsrp (#16251) 2024-07-29 21:53:24 +02:00
cc6b1acfc8 Add Servicename to Alert Detail (#16249)
* Update functions.inc.php

* spaces

* tweaks

* tweaks

* I need to wake up

* I Like the colons
2024-07-29 11:53:11 -05:00
9f4e6cbf01 add in/out erros to port table (#16073) 2024-07-26 09:09:38 -05:00
b41d1b7ffb Fix Port Channels take 2 (#16246)
* Resubmit of #16227

* Add missing new files
2024-07-26 08:45:34 -05:00
e45dd59f77 Revert "Fix Port Channel (#16227)" (#16245)
This reverts commit 0d201c44c992106dbf6664f7e2657d62e4bd289a.
2024-07-26 15:26:04 +02:00
0d201c44c9 Fix Port Channel (#16227)
* Fix expandable sizing

* Temp fix: port_id_{low,high} is actually ifIndex

* new PortsStack discovery module, store actual port_ids

* Show 4 rows of ports by default

* Add test data

* Fix up the single port view too

* Apply fixes from StyleCI

* Update db_schema.yaml

* Update base migration because sqlite cannot add primary keys

* Fix phpstan failures

---------

Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
2024-07-25 23:39:36 -05:00
9c5a4049f7 Update graph timezone data (#16244)
fixes #16049
2024-07-25 23:24:56 -05:00
6dbcdceab2 Fix poller wrapper debug option (#16214)
* Fix poller wrapper debug

* fix lint failure
2024-07-25 23:13:17 -05:00
5737e8e277 Fix list_arp API (#16243)
Failed when IP or MAC was specified
2024-07-25 22:50:58 -05:00
8866ab3119 Add link on alert-rules page to display active alerts for rule (#16232)
* Add link on alert-rules page to display active alerts for rule

* replace ? with / per convention

* make the alert icon clickable too

* Lower the brightness of the warning rows
2024-07-25 21:43:44 -05:00
55f603c30c Refactor SnmpResponse mapTable (#16238)
Replace previous code with a couple of foreach loops
2024-07-22 21:23:10 -05:00
7c8276052e Discovery, make sure where is set (#16237) 2024-07-22 21:21:57 -05:00
5fc7055d54 set default_role when registering instead of at every login (#16235) 2024-07-22 16:58:34 +02:00
a81a9f3cfc Fix custom map default settings error (#16236)
and config order
2024-07-22 09:24:56 -05:00
e6f02ea7ff Add support for Prometheus pushgateway basic auth (#16230)
Co-authored-by: Joe Clarke <jclarke@cisco.com>
2024-07-21 20:03:32 +02:00
1f01d7e627 Docs Update: Large Scale LNMS Deployment Example (#16226)
* Update Distributed-Poller.md

* Update Distributed-Poller.md

* Rename librenms-distributed-diagram.png to librenms-distributed-diagram-openstack.png

* Update Distributed-Poller.md

* Add files via upload

* Update Distributed-Poller.md

* Update Distributed-Poller.md

* Update Distributed-Poller.md
2024-07-21 14:30:17 +02:00
aad110102f Fix error from MikroTik routers when updating BGP peer info (#16224)
* Create a case for routeros.

RouterOS doesn't support the bgpPeerInUpdateElapsedTime object, so when
LibreNMS does to insert a peer update into the database from a MikroTik
router, you see the following error:

SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: '' for column `librenms`.`bgpPeers`.`bgpPeerInUpdateElapsedTime` at row 2 (Connection: mysql, SQL: UPDATE `bgpPeers` set `bgpPeerAdminStatus`=start,`bgpPeerInUpdateElapsedTime`=...

To fix this, special-case routeros and note that the object is not yet
supported.

* Use spaces, not tabs.

* Use set_numeric() to ensure bgpPeerInUpdateElapsedTime is a number.

---------

Co-authored-by: Joe Clarke <jclarke@cisco.com>
2024-07-19 19:41:16 +02:00
23965cee49 Add support for memory, power status and transceiver monitoring to Fiberstore S3900 series switches (#16225) 2024-07-19 19:39:39 +02:00
090611f6c1 Add support for FortiNet FortiExtender (#16219)
* Add support for FortiExtender - Wireless Sensors

* Add support for FortiExtender - Discovery YAML

* Add support for FortiExtender - YAML Sensors

* FortiExtender 201E SNMPsim

* FortiExtender 201E - Test Data

* FortiExtender MIB

* StyleCI

* Fix StyleCI

* Better now?

* Whoops

* Update fortiextender_201e.json

* Update fortiextender_201e.json

* Add files via upload

* Delete mibs/fortinet/FORTINET-FORTIEXTENDER-MIB.mib
2024-07-18 22:47:40 +02:00
512403a255 Tripplite console server (#16156)
* exclude triplite console servers

* add definition for tripplite console servers

* add test files

* renamed to lowercase

* add testdata

* add testdata

* disable poller and discery modules that do not apply to this device

* lo will always report empty values, so lets ignore it

* removed disabled poller modules
2024-07-17 18:15:03 -05:00
97a13f6fe8 discovery - LLDPv2 support extension, and discovery-protocols tests (#16113)
* LLDPv2

* style

* styleAgain

* LLDPv2Tests

* discovery_module_tests

* VRP links tests

* tests

* AOS

* DLINK

* CISCOSB

* AOS

* AOS7

* ARUBA

* ZYNOS

* DLINK

* fix orderby

* edgecos

* boss

* edgeswitch

* voss

* eltex-mes23xx

* fs-switch

* ciena-sds

* cisco

* procurve

* tests/data/moxa-etherdevice

* junos

* mypoweros

* fixTestsArubaOS_orderby

* tests/data/bti800.json

* tests/data/scalance_xc206-2sfp.json

* ciena-sds

* aruba-cx

* orderby remote_port as well

* vrp

* force test rerun
2024-07-17 16:07:57 -05:00
cf7b025fb1 Custom Maps configurable new map defaults (#16212) 2024-07-17 16:05:44 -05:00
1cceafb887 Improve Snmpsim usage to ease testing (#15471)
* Snmpsim use python venv
Patch to enable listening while minimizing output
Update lnms dev:simulate, tests, and ./scripts/save-test-data.php
removed old option to start snmpsim from older scripts, use lnms dev:simulate

* Apply fixes from StyleCI

* various fixes

* Remove patch official package is updated

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2024-07-17 16:05:07 -05:00
10669226fc Fix snmpsim in CI (#16213) 2024-07-17 10:50:19 -05:00