Commit Graph

19412 Commits

Author SHA1 Message Date
Jellyfrog
02400e66cd Fix APP_KEY generation when using fpm (#14168) 2022-08-04 17:59:10 -05:00
Jellyfrog
b706211b77 Docs: Add instructions for PHP 8.1 and Ubuntu 22.04 (#14166) 2022-08-04 17:58:03 -05:00
Ambroise
0f37f68bfd Add possibility to monitor the php-fpm service with the unix agent and (#14173)
not only with SNMP agent

Co-authored-by: Ambroise Rosset <ambroise.rosset@unil.ch>
2022-08-03 08:31:06 -05:00
Martin22
b124008614 Change state_name for Racoms modulation (#14174) 2022-08-02 16:17:53 -05:00
Peca Nesovanovic
403202efa4 empty Outages tables (#14167) 2022-08-02 16:15:42 -05:00
Tony Murray
1c2e446326 New Poller validations (#14148)
* New Poller validations
Seperated poller and distributed poller validations to make poller validations generally available
One auto fixer added
Translatable strings

* lint and style fixes

* and style

* and style

* Update LibreNMS/Validations/Poller/CheckLocking.php

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

* Update CheckPythonWrapper.php

* Try to check if cron is even installed before warning about not being able to read the cron files.
Likely most systems they won't be readable, but also, it is very unlikely we hit the cron check and it is meaningfully different than the first Poller::exists() check.

* Work on poller validation
Remove errors/warnings when at least one poller of the other type is active.

* style fixes

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2022-08-02 16:02:37 -05:00
Peca Nesovanovic
3d65e722a6 Initial support for Serbian language (#14165)
* initial support for serbian language

* lnms translation:generate
2022-07-31 16:09:59 +02:00
Peca Nesovanovic
a5cc4dc90c Enable translation in 3 Alert widget (#14164)
* translate alertlog widget

* translate alertlog_stats widget

* translate alerts widget
2022-07-31 16:06:17 +02:00
TheMysteriousX
a2c705bd87 queit -> quiet (#14163) 2022-07-31 16:05:37 +02:00
Mark Nagel
3309750f35 replace git show --no-patch option with --quiet (#14160)
* replace git show --no-patch option with --quiet

Older versions of git do not support --no-patch or -q, but both older and modern versions support --quiet.

* Merge #14161

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-07-30 14:57:26 +02:00
Peca Nesovanovic
5dd23f7d7d IPv6 Debug typo (#14162) 2022-07-30 13:27:16 +02:00
Tony Murray
7b868982d5 New lnms command to enable and disable plugins (#14147)
* New lnms command to enable and disable plugins
lnms plugin:disable
lnms plugin:enable

* cleanup

* appease the lint gods

* and style

* Restore accidental file removal
2022-07-29 11:36:49 -05:00
Jellyfrog
670f964e98 Validate: use "database version" instead of "mysql version" (#14158)
* Validate: use "database version" instead of "mysql version"

* wip

* wip
2022-07-29 11:36:18 -05:00
Tony Murray
8508710e62 Stats: Collect OS distro and LibreNMS version (#14138)
* Stats: Collect OS distro and LibreNMS version

Add os distro/version and LibreNMS version to stats collection.

To view stats: https://stats.librenms.org

* style/lint fixes

* Put debug where it will work

* One call sends int, which is ok
2022-07-29 08:53:41 -05:00
Félix Bouynot
a0e263295d Update php installation instruction for CentOS 8 to reflect the minimum php version now being 8.1 (#14159) 2022-07-29 08:48:49 -05:00
Jellyfrog
6ebcde3c04 Prepare for PHP 8.1 (#14156) 2022-07-28 22:09:09 -05:00
rhinoau
d248e6561f Standardize device and device group maintenance API (#14153)
* Standardise device and devicegroup maintenance API

* styleci fixes
2022-07-28 11:38:46 -05:00
Félix Bouynot
91e7b062c5 Fix typo in Smokeping SELinux documentation (#14155) 2022-07-28 08:44:23 -05:00
Tony Murray
120b40d0ed Docs: add device_default_display info (#14151)
Add remove legacy settings
2022-07-28 00:29:54 +02:00
Tony Murray
1861e09a5b Fix Rocky Linux and AlmaLinux icons and logos (#14150)
* Fix Rocky linux os icon

* AlmaLinux was missing too and add Rocky Linux logo
2022-07-27 18:42:55 +02:00
Quentin Schoemaker
f1ff2ee983 Added support for CheckPoint 1100, 1450 & 1490 models. (#14074)
* Added support for CheckPoint 1450 & 1490 models.

* Added test data for CheckPoint 1100, 1450 & 1490 models.

* Make change

* Moved sysObjectID to the right place.

* Update gaia.yaml

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-07-27 11:19:13 -05:00
Peca Nesovanovic
a551a95404 [gui] enable permanent vertical scroll (#14102)
* [gui] permanent vertical scroll

* switch to styles.css
2022-07-27 11:18:25 -05:00
Nash Kaminski
e485244d2b Add additional sysObjectIDs for all known variants of Arista 7130 (#14144) 2022-07-27 14:03:40 +02:00
Nash Kaminski
d0503fbdef Fix 500 error in validation when UI containers and poller containers have differing node_ids (#14146)
* Fix 500 error in validation when UI containers and poller containers have unique node_ids

* Update DistributedPoller.php

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-07-27 03:08:17 -05:00
Nash Kaminski
797fe7477d Improvements to PagerDuty alert formatting (#14143)
* Split PagerDuty payloads into an array delimited by newlines

* Remove empty lines in PagerDuty message
2022-07-27 02:51:02 -05:00
Jellyfrog
a214dbc8f3 Use --no-patch to support old git clients (#14137) 2022-07-26 01:21:19 +02:00
Tony Murray
a06eaa4767 Fix eventlog filtering (#14136)
Was sending device_id = 0 for all devices when it should have been device_id = null
2022-07-25 09:01:22 -05:00
Tony Murray
7071db98a5 Merge netmanplus and riello and improve device support (#14125)
* merge netmanplus and riello

* Fix icon and hardware
2022-07-24 20:11:01 +02:00
Tony Murray
5c958937b3 Solid Optics EDFAMUX support (#14129)
Workaround a bad SNMP implementation
2022-07-24 20:10:15 +02:00
Konstantin
e497ee77b8 Eltex MES 2324p Add (#14135) 2022-07-24 20:04:56 +02:00
Tony Murray
799c03df29 lnms device:poll better feedback (#14130)
* lnms device:poll better feedback
Feedback when 0 devices are found to poll or 0 devices are polled.
Make devices polled summary string translatable.

* additional note on what the wildcard is

* Fix style
2022-07-22 16:31:27 -05:00
Tony Murray
b13ba8c574 Tests: Increase OS detection time, sometimes it is not ready by 5s (#14133) 2022-07-22 16:27:25 -05:00
Zane C. Bowers-Hadley
0bbcde1227 add the ability for storing app data to prevent spamming of the event log via via component usage (#14087)
* initial work on add the ability to save/fetch app data

* update to use get_app_data for ZFS

* update the poller for the new app_data stuff

* ZFS now logs changes to pools

* add schema update for app_data stuff

* small formatting fix

* add a missing \

* now adds a column

* sql-schema is no longer used, so remove the file that was added here

* misc cleanups

* rename the method in database/migrations/2022_07_03_1947_add_app_data.php

* hopefully fix the migration bit

* add the column to misc/db_schema.yaml

* more misc small DB fixes

* update the test as the json column uses collat of utf8mb4_bin

* revert the last change and try manually setting it to what is expected

* remove a extra ;

* update suricata as well

* correct the instance -> instances in one location to prevent the old instance list from being stomped

* remove a extra ;

* update fail2ban to use it as well

* remove two unused functions as suricata and fail2ban no longer use components

* style cleanup

* postgres poller updated to use it

* update html side of the postgres bits

* chronyd now uses app data bits now as well

* portactivity now uses it as well

* style fix

* sort the returned arrays from app_data

* correct log message for port activity

* collocation change

* try re-ordering it

* add in the new data column to the tests

* remove a extra ,

* hmm... ->collate('utf8mb4_unicode_ci') is not usable as apparently collate does not exist

* change the column type from json to longtext

* mv chronyd stuff while I sort out the rest of the tests... damn thing is always buggy

* hmm... fix a missing line then likely move stuff back

* style fix

* add fillable

* add the expexcted data for fail2ban json

* escape a " I missed

* add data for portactivity

* add suricata app data

* add app data to zfs legacy test

* put the moved tests back into place and update zfs-v1 test

* add app data for chronyd test

* add app data for fail2ban legacy test

* update zfs v1 app data

* add some notes on application dev work

* add Developing/Application-Notes.md to mkdocs.yml

* add data column to it

* added various suggestions from bennet-esyoil

* convert from isset to sizeof

* type fix

* fully remove the old save app data function and move it into a helper function... the other still needs cleaned up prior to removal

* update docs

* get_app_data is fully removed now as well

* a few style fixes

* add $casts

* update chronyd test

* attempt to fix the data

* more doc cleanup and try changing the cast

* style fix

* revert the changes to the chronyd test

* apply a few of murrant's suggestions

* document working with ->data as json and non-josn

* remove two no-longer used in this PR exceptions

* ->data now operates transparently

* style fix

* update data tests

* fix json

* test fix

* update the app notes to reflect how app data now works

* app test fix

* app data fix for linux_lsi

* json fix

* minor doc cleanup

* remove duplicate querty and use json_decode instead

* style fix

* modelize the app poller

* use a anon func instead of foreach

* test update

* style cleanup

* style cleanup

* another test cleanup

* more test cleanup

* reverse the test changes and add in some more glue code

* revert one of the test changes

* another small test fix

* Make things use models
Left some array access, but those will still work just fine.

* missed chronyd and portactivity

* rename poll to avoid make it any confusion

* Remove extra save and fix timestamp

* save any changes made to app->data

* nope, that was not it

* What are magic methods and how do they work?

* fix two typos

* update linux_lsi test

* change quote type

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-07-22 16:01:55 -05:00
Konstantin
6e98139cd1 ZTE ZXA10 Update (Added dBm graphs) (#14049)
* First commit ZXA10 Update

* ZTE ZXA10 Update 2

* ZTE ZXA10 Update 3

* ZTE ZXA10 Update 4

* ZTE ZXA10 Update 5

* ZTE ZXA10 Update 6

* ZTE ZXA10 Update 7

* Update, disable snmpbulk

* Update test data

* Remove unneeded php files and update yaml add OLT Tx power too

* Update test data

* Update zxa10.yaml

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-07-22 15:55:51 -05:00
Félix Bouynot
49a42c2dd6 Change SELinux context for logs (#14128)
Change SELinux context for logs from httpd_sys_rw_content_t to httpd_log_t so logrotate is not blocked by SELinux with this blocking: `logrotate_t httpd_sys_rw_content_t:file open;`
2022-07-22 08:32:37 -05:00
Tony Murray
52f0dab2f8 Sensors, convert hex to strings (#14121)
* Sensors, convert hex to strings

* Fix clickshare, it actually was returning hex

* update hpe-mapdu

* skip ict-mps sensors without valid values
2022-07-22 07:59:41 -05:00
PedroChaps
07f052738d Added aos6 vlan discovery file (#14107) 2022-07-21 10:56:56 -05:00
Tony Murray
30cb0a5fb3 Fix maintenance APIs not associating device or group (#14127) 2022-07-21 07:07:44 -05:00
Marek Wobst
207aaf3064 Add rich (=html) support for messages via Matrix (#14054)
Mails may be colorful now, too.
2022-07-20 23:05:38 -05:00
Tony Murray
747d6f288c Bump version to 22.7.0 22.7.0 2022-07-20 21:53:17 -05:00
Tony Murray
b753cdaf98 Changelog for 22.7.0 2022-07-20 21:53:15 -05:00
Feras Al-Kassar
e5c91a0f83 Security fixes XSS in oxidized-cfg-check.inc.php and print-customoid.php (#14126)
Signed-off-by: AL-KASSAR <feras.al-kassar@sap.com>
2022-07-20 12:45:42 -05:00
Tony Murray
98da97c816 Test PHP 8.1 (#14109)
* Test PHP 8.1
Would love to remove the PHP7 versions, but we need to update our minimum version first.

* Try mariadb 10.8

* Reduce the number of open connections during testing.
2022-07-20 15:27:57 +02:00
Tony Murray
9320e6cd06 Prevent duplicate plugin table entries (#14120)
* Prevent duplicate plugin table entries
Some sort of race condition.
Add a unique index, this will cause the create query to fail when it tries to add a new entry for an existing plugin.

* Add index
2022-07-20 15:25:45 +02:00
dependabot[bot]
1a99119968 Bump terser from 4.8.0 to 4.8.1 (#14123)
Bumps [terser](https://github.com/terser/terser) from 4.8.0 to 4.8.1.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-20 10:18:08 +02:00
Tony Murray
74a04e515c Fix auth_test.php debug (#14118) 2022-07-19 09:50:14 -05:00
00gh
f66ee182e3 ping_perf.inc.php: changed AVERAGE to MIN to reflect legend. (#14117)
The generated graphs shows wrong legend value for "Min".
It is displaying the calculated AVERAGE value instead of the
calculated MIN.

Changed AVARAGE into MIN.

Co-authored-by: 00gh <00gh>
2022-07-18 18:58:56 -05:00
Félix Bouynot
8e841a8296 Add SELinux configuration for RRDCached on Centos8 in the documentation (#14092)
* Add SELinux configuration for RRDCached on Centos8

* Change file creation to EOF style

* Remove spacing
2022-07-15 22:15:02 -05:00
Félix Bouynot
88ff9e2455 Add SELinux configuration for Smokeping on Centos8 in the documentation (#14093)
* Add SELinux configuration for Smokeping on Centos8 in the documentation

* Change file creation to EOF style

* Add heading to SELinux block and move it...

for the change to be clear.
2022-07-15 22:14:44 -05:00
Félix Bouynot
d3b43d608a Add SELinux configuration for LDAP/AD authentication on Centos8 in the documentation (#14094) 2022-07-15 22:14:26 -05:00