Commit Graph

20791 Commits

Author SHA1 Message Date
whitej46
2efd30fe39 Update WirelessSensor.php (#16016)
I was getting a SQL error that sensors_id was not found.  I changed the reference to sensor_id.
2024-05-03 22:35:07 -05:00
Tony Murray
5b20886732 Map Management: Show Groups (#16005)
* Map Management: Show Groups

* reorganize group selector a bit

* Use uuid to prevent issues with unicode strings and other oddities

* Edit buttons should not be primary

* Reactivity for small screens
2024-05-03 18:30:03 -05:00
sogadm
3313949ea7 Massive changes to the Chinese interface translation. (#16009)
* Chinese translation fixes

Chinese translation fixes

* Update settings.php

Chinese translation fixes

* [Chinese Translation]

Massive changes to the Chinese interface translation.

* [Chinese Translation]

Massive changes to the Chinese interface translation.

* Update validation.php

Fix syntax errors

* Update validation.php

Fix syntax errors

* Chinese

Massive changes to the Chinese interface translation.

* Update auth.php

* Update bgp.php

* Update commands.php

* Update commands.php

* Update components.php

* Update components.php

* Update device.php

* Update exceptions.php

* Update install.php

* Update inventory.php

* Update map.php

* Update modules.php

* Update pagination.php

* Update passwords.php

* Update plugins.php

* Update poller.php

* Update port.php

* Update preferences.php

* Update sensors.php

* Update settings.php

* Update syslog.php

* Update validation.php

* Update widgets.php

* Update settings.php

* Update settings.php

* Update settings.php
2024-05-03 18:19:59 -05:00
Tony Murray
1c5e96f8d4 Mobile menu full height (#16011)
Maybe more ease of use changes coming for mobile down the road, but this is a quick bandaid.
2024-05-03 18:18:50 -05:00
Tony Murray
fe2f8a6c81 Change custom map editor icon (#16004)
Edit icon makes more sense than map icon and makes it visually distinct from maps above it in menu.
2024-05-01 14:15:27 -05:00
sonic45132
250c3e32c3 Fix for AD Lookup in our environment (#16001) 2024-05-01 06:56:47 -05:00
Heath Barnhart
11142d349b SNMP Traps - Ciena AAA (#15998)
* Ciena AAA snmp trap handler

* Removed IP from log message

* Added unit test

* Fixed unit test

* Removing reference from handler
2024-05-01 11:25:46 +02:00
Nicolas
8efa3370f7 powewalker improvements/fixes + test-data (#15999) 2024-05-01 11:23:37 +02:00
Félix Bouynot
58883278cf doc(selinux): set httpd_cache_t type to /opt/librenms/cache (#16000)
This is to avoid the following error when trying to poll: 
```
file_put_contents(/opt/librenms/cache/os_defs.cache): Failed to open stream: Permission denied {"exception":"[object] (ErrorException(code: 0): file_put_contents(/opt/librenms/cache/os_defs.cache): Failed to open stream: Permission denied at /opt/librenms/LibreNMS/Util/OS.php:113)"} 
```
2024-05-01 11:21:55 +02:00
Tony Murray
07655c24af Merge duplicate toBytes functions (#15994)
* Merge duplicate toBytes functions
Replace other duplicate code and add tests

* Allow space between similar to formatSI output

* Style fixes

* Match previous behavior in Docker app
2024-04-30 14:40:08 +02:00
Jarod2801
acd92e822b Add support for ULAF+ (#15997) 2024-04-30 14:38:01 +02:00
Santiago Z
8ae66a3bb8 Update Dockerfile (#15996) 2024-04-30 14:35:29 +02:00
Tony Murray
4530b3e54c Revert "[DOC] Update for mkdocs-material 9.5.19 and icons added to Install-Li…" (#15995)
This reverts commit 20bd5a3163.
2024-04-29 14:24:53 -05:00
Santiago Z
20bd5a3163 [DOC] Update for mkdocs-material 9.5.19 and icons added to Install-LibreNMS.md (#15989)
* Configuration

* Update Install-LibreNMS.md

* Update mkdocs.yml

* Update doc.yml

* test

* Update doc.yml

* Update doc.yml

* Update doc.yml

* Update doc.yml

* Update doc.yml

* Update doc.yml

* Update doc.yml

* Update doc.yml

* Update Dockerfile

* Update Dockerfile

* Update Dockerfile

* test v 9.5.19
2024-04-29 09:34:18 -05:00
sogadm
15aa91d546 Chinese translation fixesChinese translation fixes (#15991)
* Chinese translation fixes

Chinese translation fixes

* Update settings.php

Chinese translation fixes
2024-04-29 09:29:59 -05:00
Santiago Z
f63560bcf1 remove duplicate changelog 24.1.0 (#15987) 2024-04-27 13:48:39 +02:00
Sarabveer Singh
b14a86ecf6 Fix systemd graphs using wrong rrd filename variable (#15988) 2024-04-27 13:47:41 +02:00
Tony Murray
1dc62454fc Show custom maps in device overview (#15985)
* Show custom maps in device overview

* remove extra line return

* Sort by name
2024-04-26 15:10:24 -05:00
jthiltges
3f4bd69718 Correct swapped SET and WHERE parameters in bgp-peers/dell-os10.inc.php (#15983)
When the code was refactored in daa8c757f6, the selectors and updated columns were reversed.
2024-04-26 08:48:47 -05:00
Warren Ashcroft
1aa712e189 Fix graph_type variable (svg / png) (#15972) 2024-04-26 08:33:08 -05:00
hatboxen
443bfdb3b7 Update Welcome-to-Observium-users.md (#15981)
updated due to link rot
2024-04-26 07:48:03 -05:00
ch
acf61ab07b MIKROTIK-MIB: Update to latest revision (#15984)
Update to latest revision dated 202404100000Z
2024-04-26 13:22:27 +02:00
Tony Murray
43e6846cbc Custom Map: Show crosshairs when adding (#15978)
* Custom Map: Show crosshairs when adding
When adding a node or edge, give cursor feedback.
Updates js deps

* Missed package-lock.json
2024-04-25 15:36:16 -05:00
Tony Murray
f78edf4d11 New Map Menu (#15969)
* Map Menu
New top level Map menu.
Ability to group custom maps.
Ajax Select controller improvements

* Fix style
2024-04-25 15:32:33 -05:00
Justin Lentz
51fa1887f9 remove poller_name (#15979) 2024-04-25 15:32:19 -05:00
Tony Murray
ac98abbafb On-demand map menu items (#15971)
Only show map menu items if they have data:
 * Network
 * Device Dependencies
 * Device Group Dependencies
2024-04-25 09:19:21 -05:00
Tony Murray
d48d850c3e Custom Maps: Fix title update removing link (#15976) 2024-04-24 10:36:04 -05:00
Tony Murray
b0c03b29ac Custom Maps: make edit title clickable (#15965) 2024-04-23 09:57:19 +02:00
Tony Murray
9d87c88382 Git ignore custom map images (#15966) 2024-04-23 09:55:15 +02:00
Tony Murray
1c33cb4d2e Update packet_loss docs (#15962) 2024-04-22 23:22:19 -05:00
paulierco
b7f4f14b30 New velocloud devices (#15958)
* aos7 tests

* Revert "aos7 tests"

This reverts commit fc9da4cced.

* Add more VeloCloud devices

* remove
2024-04-20 10:28:45 -05:00
Tony Murray
613fd18511 packet_loss macros quick fix (#15961)
* packet_loss macros quick fix
Due to device_perf table going away, this macro no longer functions as it did.
Use device status to make it somewhat functional until a better solution can be found.

* remove space
24.4.1
2024-04-20 09:26:51 -05:00
Tony Murray
9088a34299 Bump version to 24.4.0 24.4.0 2024-04-19 20:52:35 -05:00
Tony Murray
e1c6c54dbd Changelog for 24.4.0 2024-04-19 20:52:34 -05:00
Joe Clarke
018597e7bb Add support for a maintenance boolean in API results. (#15904)
* Add support for a maintenance boolean in API results.

If a device is under maintenance, it would be nice to see that from the
API. This can help drive other automation workflows where LibreNMS forms
a cornerstone in the management source of truth.

* Revert changes made by VSCode formatting.

* Revert two more formatting changes.

* Create a new API endpoint for GETing maintenance status.

This uses the same endpoint name as for setting a device to maintenance
but with a GET verb.

---------

Co-authored-by: Joe Clarke <jclarke@cisco.com>
2024-04-19 19:52:22 -05:00
Tony Murray
1911dcb11f Skip rrd sources that do not exist (#15959)
* Skip rrd sources that do not exist

* Log message will be too noisy, remove it.

* style fix
2024-04-19 15:54:27 -05:00
Alexander Moisseev
7e33e09146 Add missing p5-File-Slurp dependency (#15955) 2024-04-19 21:11:04 +02:00
Tony Murray
36d14480f9 Fix Graph date selector (#15956)
It did not handle strings like now and -2d
2024-04-19 10:22:06 -05:00
Zane C. Bowers-Hadley
03e9b52295 only call stripslashes if it is not compressed, compressed is already protected against munging by snmpd (#15953) 2024-04-19 08:03:34 -05:00
Tony Murray
19344f0584 Fix JS injection in Service Templates (#15954)
You can't put user data in any "onwhatever" attributes, there is no way to sanitize it there.
Use data attributes instead.
2024-04-18 21:45:30 -05:00
Tony Murray
49f8269262 Improved Latency graph (#15940)
* Improved Latency graph
Store loss+jitter info in rrd instead of database
New graph icmp_perf (legacy ping_perf still valid referencing part of the newer data)
Delete device_perf table

* Change loss to an area so it is more visible

* Style fixes

* Cleanups from phpstan & tests

* exit_code fix

* Remove alert usage of device_perf

* Don't use magic __get

* Add test for bulkPing
Add host to previous tests

* style fixes

* Fix issue fping error responses
2024-04-18 09:57:01 -05:00
Tarek
4cce4f082e Fix typ (#15952)
Fixed a typo `Backlog Lenght` -> `Backlog Length`
2024-04-18 14:15:31 +02:00
Tony Murray
d29201fce1 Fix SQL injection issues in packages search (#15950)
https://github.com/librenms/librenms/security/advisories/GHSA-cwx6-cx7x-4q34
2024-04-17 02:32:35 +02:00
Joe Clarke
d7737b9889 Pretty up Slack formatting. (#15898)
* Pretty up Slack formatting.

* Normalize spaces by turning every instance of two or more spaces into
  one space.
* Allow for custom URL links even when strip_tags() is in effect by
  transformaing "standard" markdown syntax into Slack link markdown
  after strip_tags() is run.

* Document the changes to the Slack transport.

While here, flesh out the Slack docs to match the configuration options
one currently sees in the transport.

* Use backticks to escape things from markdown rendering.

* We don't need this other escaping now.

* Fix custom link due to line break.

* Fix spelling typo.

---------

Co-authored-by: Joe Clarke <jclarke@cisco.com>
2024-04-16 11:28:10 -05:00
Jellyfrog
83fe4b10c4 Improve order validation in list_devices function to prevent SQL injection (#15885) 2024-04-16 10:38:17 -05:00
Melhuig
36dc9d3c05 Update Network-Map.md (#15949)
Fix "lnms config:set" command syntax
2024-04-16 09:23:35 -05:00
dependabot[bot]
54e07d0b57 Bump tecnickcom/tcpdf from 6.6.5 to 6.7.4 (#15948)
Bumps [tecnickcom/tcpdf](https://github.com/tecnickcom/TCPDF) from 6.6.5 to 6.7.4.
- [Changelog](https://github.com/tecnickcom/TCPDF/blob/main/CHANGELOG.TXT)
- [Commits](https://github.com/tecnickcom/TCPDF/commits/6.7.4)

---
updated-dependencies:
- dependency-name: tecnickcom/tcpdf
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-15 21:25:08 +02:00
Tony Murray
1c4d92341f fix null in services (#15945) 2024-04-14 16:48:13 -05:00
Tony Murray
5828907b23 Fix graph selection when to/from missing from url (#15946)
* Fix graph selection when to/from missing from url
fixes #15840

* Update js cache value
2024-04-14 16:48:01 -05:00
Tony Murray
3d810970fb Fix PDNS recursor error (#15942) 2024-04-14 18:43:35 +02:00