Commit Graph

19794 Commits

Author SHA1 Message Date
Tony Murray
8ea3f5cd06 Offer opt in to usage and error reporting during install (#13906)
and on the about page
2022-12-15 19:52:22 -06:00
Tony Murray
510f9d340d Fix ArubaInstance channel decode issue (#14732)
* Fix ArubaInstance channel decode issue
PHP no longer implicitly casts in this situation

* missing import
2022-12-15 19:36:57 -06:00
Tony Murray
e84b2c0c75 Number Casting allow preceding space (#14699) 2022-12-15 16:01:01 -06:00
Tony Murray
88c86f2a19 Fix graph output base64 (#14701)
Mostly for people using unauth graphs instead of the api.
2022-12-15 15:58:56 -06:00
Tony Murray
1d3440b943 Unify time interval formatting (#14733)
* Unify time interval formatting
Use carbon for formatting, it supports locales.

* fix style

* remove baseline exceptions

* fixes found by lint
2022-12-15 15:52:53 -06:00
Andy Norwood
d091788f28 API list_devices update with sysName, location_id and type (#14731)
* Add sysName, location_id, type to list_devices

* Add new list_devices type
2022-12-15 08:25:11 -06:00
electrocret
f085a5da06 Fix Cimc on Overview (#14727) 2022-12-15 01:49:33 +01:00
angeletdemon
47cc169f4b Update Install-LibreNMS.md (#14722) 2022-12-12 09:02:49 +01:00
bnerickson
c3dd0804e3 Updating certificate script documentation (#14721) 2022-12-10 07:14:55 -06:00
Gilles Depeyrot
c4cb9c652c Add MAC OUI caching when code updates are disabled (#14713) 2022-12-09 17:28:29 +01:00
AdamB
3a085d89c9 Use 'counter' RRD type for some TrueNAS sensors (#14670)
* Use 'counter' for some TrueNAS sensors

* Test Data

* Missed one

* Update index to force sensor to be re-discovered

* Switch sufix from '_Count' to '_rate'
2022-12-09 17:27:39 +01:00
Gilles Depeyrot
ceb8a02a99 Search devices using display field as well (#14714) 2022-12-09 17:25:42 +01:00
Michał Margula
3a035257b5 Update Docker.md with proper path to unzipped files (#14717)
Proper patch to unzipped files
2022-12-09 15:09:23 +01:00
Santiago Z
ea2ef79de1 Fix typo: purge-port.php file name (#14712) 2022-12-09 09:09:58 +01:00
bnerickson
f539c3f7f5 Adding sample alert for systemd application (#14711) 2022-12-09 00:56:02 +02:00
bnerickson
a556aca1d2 Removing max polling restriction for wireguard traffic RRD data (#14710) 2022-12-08 01:41:06 +01:00
bnerickson
fbd4bc1269 Adding certificate application tests (#14708) 2022-12-07 23:02:23 +01:00
dependabot[bot]
bad6ad6c4d Bump qs and express (#14705)
Bumps [qs](https://github.com/ljharb/qs) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together.

Updates `qs` from 6.9.6 to 6.11.0
- [Release notes](https://github.com/ljharb/qs/releases)
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/qs/compare/v6.9.6...v6.11.0)

Updates `express` from 4.17.2 to 4.18.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.17.2...4.18.2)

---
updated-dependencies:
- dependency-name: qs
  dependency-type: indirect
- dependency-name: express
  dependency-type: indirect
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-07 09:41:51 +01:00
Tony Murray
2aa44217d0 Release notes internal features category (#14700) 2022-12-05 14:15:53 -06:00
Garcia MICHEL
49abee3722 Fix check rrd file exists with remote rrdcached (#14690) 2022-12-01 08:20:49 -06:00
electrocret
0ef39344fd Correct example variable (#14683) 2022-11-30 20:40:20 -06:00
Bogdan-Stefan Rotariu
5dd5e880b7 Update sensor.inc.php, adding $unit to Average (#14680)
Due to a mistake, I forgot to add $unit to Average
2022-11-30 20:36:27 -06:00
Tony Murray
e8c3b2c924 Improve SnmpResponse value() (#14605)
* Improve SnmpResponse value
Can now return a specific oid or the first non-empty oid in a list.
Cache values() call on object to avoid repeated parsing
Improved types

* fix style

* extract getOidParts to fix errors from different parts of the code parsing differently

* new object to deal with cache

* More tests

* whitespace

* style
2022-11-30 19:50:46 -06:00
Tony Murray
2a8b8b864b Fix some graphs not respecting device display name (#14684)
Just a quick fix
2022-11-30 07:39:38 -06:00
electrocret
fb3c2ecb1c Add traceroute -I flag (#14667) 2022-11-28 08:54:00 -06:00
hugalafutro
cde94a77df correct squid snmpd.conf proxy host syntax (#14678)
127.0.0.1.3401 produces error snmpget: Unknown host (127.0.0.1.3401)
2022-11-28 08:51:40 -06:00
Bogdan-Stefan Rotariu
eca3b6bf77 Adding Average into graphs (#14679)
This modification adds average description into graphs.
2022-11-28 08:50:52 -06:00
Denny Friebe
54094a4038 Support Huawei SMU02B (#14673)
Signed-off-by: Denny Friebe <nightcore500@users.noreply.github.com>

Signed-off-by: Denny Friebe <nightcore500@users.noreply.github.com>
2022-11-24 17:34:27 +01:00
Tony Murray
bea0389938 Bump version to 22.11.0 22.11.0 2022-11-24 00:01:26 -06:00
Tony Murray
c00419d78c Changelog for 22.11.0 2022-11-24 00:01:25 -06:00
mabra94
fbfd0a72ee Bug - Handle Division by 0 error for SvcFdbTable (#14672) 2022-11-23 17:04:56 +01:00
Tony Murray
a6e1c11b0c Remove ungrouped devices panel (#14664)
The panel destroyed the page performance on larger installs.
Now has a link to the devices list with new group=none filter.
2022-11-22 15:52:29 -06:00
electrocret
d10ccc697c Undefined constant error (#14668) 2022-11-22 15:52:15 -06:00
VoipTelCH
e55e49ddf6 Fix discovery ignores custom ipmi port (#14660)
* Update ipmi.inc.php

* Update ipmi.inc.php

Fix use default port if not specified

* Update ipmi.inc.php

Fixed for more consistency with the rest of the file

* filter_var returns the value

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-11-22 09:41:51 -06:00
koocotte
cae2409132 Update for Debian and for non /opt/librenms installation (#14663)
Update specific instructions for Debian 11 and 12

Add instruction if not installed in /opt/librenms
2022-11-22 06:54:04 -06:00
Tony Murray
7635ace4fa Split out lnms snmp convenience commands (#14603)
* Split out lnms snmp convenience commands

* Use SnmpQuery->valuesByIndex()

* Fix style
2022-11-19 22:10:25 -06:00
Tony Murray
b7b037bf4d Fix Service Template XSS (#14659)
Reported via huntr.dev by @vautia
2022-11-19 21:51:35 -06:00
Tony Murray
41967743f4 Fix neighbours XSS (#14658)
Reported via Huntr.dev by @zluudg
2022-11-19 21:44:14 -06:00
Tony Murray
00d5e2f477 Fix SNMP trap -> Eventlog XSS (#14657)
Reported via Huntr.dev by @stefan-schiller-sonarsource
2022-11-19 21:31:48 -06:00
Noah Roufus
9e9720fc17 Added divisor to SAF Integra-X temp sensors (#14655) 2022-11-18 19:48:46 -06:00
Noah Roufus
52f984c78b Corrected ICT MPS hardware detection (#14654)
* Corrected ICT MPS hardware detection

* Updated test data for ICT MPS
2022-11-18 16:30:45 -06:00
Noah Roufus
359e00f602 Adjusted PMP to accomodate various other 450 models. (#14652) 2022-11-18 16:30:05 -06:00
SourceDoctor
df0c41672a custom port view fix (#14637)
* custom port view fix

* .

* code adjustment

* code adjustment

* .
2022-11-18 16:28:39 -06:00
Tony Murray
752bbc1531 Port search API search more than one fields (#14646)
* Fix port search columns

* Port search API search more than one fields
Fixup port APIs
Change validate_column_list api helper to throw a renderable exception on error and return the valid columns
DeviceCache::get() can handle a bigger range of input

* whitespace

* Refactor exceptions a bit

* change throws type to be more generic

* Lint fixes
2022-11-18 16:27:56 -06:00
SourceDoctor
e851c9abd4 Alarm Flag on UPS-Nut Application (#14635)
* Alarm Flag on UPS-Nut Application

* code adjustemnt
2022-11-18 21:15:21 +01:00
Tony Murray
1dbe8cf0fa DeviceCache::get() allow hostname (#14649)
* DeviceCache::get() allow hostname

* whitespace fix
2022-11-18 12:09:56 -06:00
Tony Murray
63988a4615 fix snmp_disable type (#14650) 2022-11-18 17:30:16 +01:00
Josh Silvas
4107b37b9d Adds Cisco DHCP Server SNMP MIB and Trap Handlers. (#14618)
* Adds API call to update port notes on devices.

* Adds Cisco IETF-DHCP Server MIB and Trap Handlers.

* Updates local permissions changed.

* Linting cleanup.

* Moves test to a single file. Updates the args to match the status.

* Fixes tests failing for Cisco DHCP server SNMP traps.
2022-11-18 00:15:42 -06:00
electrocret
e4b5f18d0f Fix brackets (#14644)
Code expects dictionary and not an array.
2022-11-17 23:43:41 -06:00
fcqpl
6c3424f149 Added support for Eltek Micropack 1U (#14645)
Added support for Eltek Micropack 1U

```
SNMP['/usr/bin/snmpget' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/eltek' '-v2c' '-c' 'COMMUNITY' '-OQXUte' 'udp:HOSTNAME:161' '.1.3.6.1.4.1.12148.10.2.6.0']  
iso.*.1.12*.0 = "Micropack 1U"
```
2022-11-17 23:29:15 -06:00