Commit Graph

20121 Commits

Author SHA1 Message Date
Tony Murray
5b409a3700
yaml indent fine tuning (#15189) 2023-08-04 13:28:37 +02:00
Tony Murray
523e76db71
Fix sensor discovery fetch issue (#15193)
* Fix sensor discovery fetch issue

* value is not in an array

* Fix type

* remove exception...

* Update HarmonyEnhanced

* update test data
2023-08-04 13:25:19 +02:00
jgelinas
65b4db8172
Openmanage enterprise modular (#14408)
* Add support for OpenManage Modular devices.

* Update dell-ome-m.yaml

Remove commented out dmmGlobalSystemStatus num_oid 
Change Max/Min Power to Peak/Min Usage

* json test file for open manage modular support

* Update dell-ome-m_dell-ome-m.json

* Update dell-ome-m_dell-ome-m.snmprec

* Update dell-ome-m_dell-ome-m.json

* Update dell-ome-m_dell-ome-m.snmprec

* Update dell-ome-m_dell-ome-m.json

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2023-08-03 19:55:09 -05:00
VTS
7381c2046c
API get_location (#14779)
* api endpoint to get specific location

* missing nl

* fix missed styleci error

* make requested change
2023-08-03 19:35:20 -05:00
Tony Murray
fe1b280a99
Fix timezone controller bad return (#15191)
was returning null when preferences.timezone was not set (not sure how to get to that case)
2023-08-03 19:31:28 -05:00
Tony Murray
12f8bb2040
MAC Vendor OUI use scheduler (#15187)
* MAC Vendor OUI use scheduler
Add command to update `lnms maintenance:fetch-ouis`
Show vendor column in tables if mac_oui.enabled is set to true
Improve scheduler validation handle non-standard install directories and systems without systemd
Add index to table to improve speed and improve mac->vendor lookup speed
Scheduled weekly with random wait to prevent stampeding herd issues for upstream
drop oui update from daily

* MAC Vendor OUI use scheduler
Add command to update `lnms maintenance:fetch-ouis`
Show vendor column in tables if mac_oui.enabled is set to true

* Lint fixes and better prefix detection

* update schema file
2023-08-03 19:29:30 -05:00
Jellyfrog
5a56e9081e
Use Laravel schema migration command directly (#14039)
* Add new schema migration command

* Apply fixes from StyleCI
2023-08-03 19:26:48 -05:00
Neil Lathwood
d4baa34b87
Fixed a zero value data insertion for billing (#15194) 2023-08-03 19:22:55 -05:00
Tony Murray
e0a20fced0
Fix security fix breaking display (#15192)
Escaped a <br />
2023-08-03 11:02:55 -05:00
Tony Murray
77fc6a34df
Graylog API properly throw errors (#15188)
* Graylog API properly throw errors
remove unused legacy graylog code

* Add type casts
2023-08-02 19:59:53 -05:00
Tony Murray
c1a4ca135c
OS discovery clarification (#15182)
* OS discovery clarification

* Update Initial-Detection.md
2023-08-02 23:44:20 +02:00
Tony Murray
51400245b9
Update Alpine Linux logos to SVG (#15185)
* Update Alpine Linux logos to SVG

* remove logo whitespace
2023-08-02 23:42:48 +02:00
Tony Murray
91c57a1ee5
Fix unsanitized input injection (#15184)
Search for and sanitize import that is output to html.
Spurred by report from [Hakiduck](https://huntr.dev/users/mike993/)
2023-08-02 10:37:22 -05:00
Tony Murray
3252ea37af
Fix some xss injection for sysLocation and some other fields (#15183)
Reported by [Zluudg](https://huntr.dev/users/zluudg/)
2023-08-02 09:51:31 -05:00
Santiago Z
d810c7a648
[DOC] Remove ~$ from BIND9 code block aka named (#15181) 2023-08-02 08:38:22 -05:00
Zane C. Bowers-Hadley
7505c89586
add generic stats graph munging support and make uptime display as days again (#15097)
* add munging to generic stats graph include

* add graph_uptime_days config def

* make it optionally changable now

* style fix

* remove the graph_uptime_days option
2023-08-02 08:36:25 -05:00
Tony Murray
7265631857
Fix error when there is an untranslated sensor type (#15176)
Will still cause a visual issue, but at least that should indicate a translation is needed.
2023-08-01 12:22:09 +02:00
Justin Lentz
f72656249f
Fix alert.macros.rule (#15172)
* Add alert.macros.rule config_definitions.json

* Update config_definitions.json

* add validation
2023-07-31 22:26:47 -05:00
Justin Lentz
90b16bab81
port_error_perc macro (#15016)
* port_error_perc

* Update macros.json

* Update macros.json

* Update querybuilder.json

* Revert

* Update macros.json

* Change macro names so they match usage_perc

* Try *100.0

* Attempt 2 - Encapsulate in parenthesis

* Undo Parenthesis

* Trying laf's suggestions

* Update QueryBuilderFilter.php
2023-07-31 22:26:21 -05:00
fufroma
c030b0c00e
RFC1628 - Force cast on some values before doing arithmetic (#14613)
* Force cast on some values before doing arithmetic

Some devices (like Delta InsightPower G3 Mini SNMP Card) return STRING instead of numerical value.

A few lines after, when doing a division on it, everything go bad ( / $divisor).

I added force casting, no more crash and the values are OK.

* Using helper cast_number() instead of intval()

* Fix style

* Add test data

* Stop using deprecated function cast_number
2023-07-31 22:18:26 -05:00
tarik
3541a582bb
fixing the mac/vendor database download from wireshark, updated file … (#15175)
* fixing the mac/vendor database download from wireshark, updated file location and format

* fixing the formatting issues
2023-07-31 22:16:52 -05:00
Tony Murray
843d0a4669
Fix settings titles in dark mode (#15174)
Fix settings icon not showing in some browsers
Fix fping configuration formatting issue
Add brief docs on formatting settings links
2023-07-31 14:21:22 -05:00
Tony Murray
4f5e31c88f
Fix select2 search field focus (#15171)
Some jQuery version broke the focus search field on open, this should fix that.
2023-07-31 13:11:36 -05:00
Tony Murray
1723f96b40
remove pingcheck debug statements (#15173) 2023-07-31 12:26:25 -05:00
Santiago Z
1935d7400b
Update Changelog.md (#15168) 2023-07-28 12:27:06 +02:00
pjordanovic
98e6fbbe40
added support for the SHARP BP series of MFP (#15169)
added support for the SHARP BP series of MFP
2023-07-28 12:26:26 +02:00
Jellyfrog
1a6fe2bff7
Update composer dependencies (#15167) 2023-07-26 22:24:37 +02:00
viptampa
cd0d839ce0
Update Routeros.md (#15165)
Spelling and grammar
2023-07-26 18:37:31 +02:00
Neil Lathwood
1943c467e3
Updated poll-billing.php to only query for data via snmp when the device and port are both up (#15164) 2023-07-26 08:40:59 -05:00
Tony Murray
3908bddb49
Miscellaneous fixes (#15162) 2023-07-26 01:08:10 +02:00
Janno Schouwenburg
ffffdd2663
Fix Timos SAR Cellular RSRP and RSSI sensors (#15163)
* Fix Timos SAR Cellular RSRP and RSSI sensors

* For some reason test data generated on dev machine double quoted backslashes, fixed
2023-07-26 01:04:35 +02:00
Neil Lathwood
a69d50e962
Added basic support for distributing billing (#15156) 2023-07-25 12:09:34 -05:00
Tony Murray
a2f906c3f4
Allow dispatcher service master timeout to be set (#15161)
and increase default to 20s from 10s
20s should still be fast enough to prevent gaps, but larger installs can take longer than 10s (or even 20s) to do dispatch work.
2023-07-25 11:27:34 -05:00
viptampa
5172e63d39
Update Routeros.md (#15160)
Updated for formatting
2023-07-25 10:36:09 +02:00
Slashdoom
1f7d5451a2
Add VLAN Discovery for arubaos-cx (#15055)
* add vlan discovery for arubaos-cx

* style fixes

* style fixes

* string interpolation fix

* status walk not used

* add snmprec for 10.10 + vlans

* Create arubaos-cx_10.10.json

---------

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2023-07-24 21:47:46 -05:00
Peter Childs
0b98b6ff72
add os check in discovery for aix/freenas storage and cisco cdp (#15104)
* add os check in discovery for aix/freenas storage and cisco cdp

* use os_group = cisco
2023-07-24 19:07:23 -05:00
Tony Murray
cce3dc0746
Discord Transprot user configurable embed fields (#15068) 2023-07-24 18:53:34 -05:00
viptampa
f9d16238c9
Update Routeros.md (#15158)
Provided clarity on how to install.
2023-07-24 18:43:09 -05:00
Zane C. Bowers-Hadley
40cceee8b4
update SMART monitoring to the use JSON (#15132)
* rework into a json app and support the old style

* working now

* add health checking

* add some datapoints to make writing alerts easy

* add a few missing item for has checks

* rework the app page

* use the right var for id9

* print the self test log if we have it

* add a graph for the max temp

* display the max temp graph

* display the health pass in the disk list if we have the data

* fix legacy handling and set app as ok

* replace id190 and id194 with the more useful maxtemp graph on the apps page

* don't print the additional info area for legacy extends

* add id232

* add id252 graph support

* properly display id232 now

* do not display SSD graphs for non-SSD disks

* for legacy extends, make sure we don't have a bad line

* add missing label for Product value

* fix metrics

* rework the metrics stuff a bit more

* typo fix

* more smart metrics cleanup

* add exit info to metrics

* style cleanup and logic checking for when disks are all now fine

* fix checking for no more health errors

* update the docs for SMART for v1 and remove slightly pointless notes about useSN

* update the docs

* initial test stuff

* add missing tests for the legacy code

* save if it it is legacy or not

* style cleanup

* update the smart legacy test

* style cleanup

* more test tweaking

* some more style cleanup

* more test fixes

* correct the disk ID for the legacy test da0 -> Z304VCFY

* more tests update

* more test cleanup

* begin cleanup of the v1 tests

* more v1 test updates

* more tests for v1

* more test cleanup

* fix exit_nonzero and add unhealthy metric

* add smart alerts

* add the metric unhealthy to the stat test

* use app data for the smart-common.inc.php
2023-07-24 17:03:45 +02:00
Tony Murray
9b077df610
AlertLog model cast details (#15143)
* AlertLog model cast details

* Style fix
2023-07-24 17:01:07 +02:00
Zane C. Bowers-Hadley
e9668550af
add a flag for adding app data to tests generated via scripts/json-app-tool.php (#15080)
* add a means to easily add in the app data section for when generating the test data

* style fix

* minor fix for where the data should be
2023-07-21 11:55:48 -05:00
Andy Norwood
64c4650801
Add FDB table vendor search drop down (#15072)
* Add vendor search and related functions

* Add OUIDB cache for vendor lookup

* Add vendor drop down

* appy style CI changes

* Apply style CI and lint changes

* more styleCI changes

* update type hinting

* Edit mac_oui cache lock name and function

* Update MAC OUI message during daily

* Use DB for vendor lookup

* New vendor_oui table migration

* New MAC OUI to database function

* Update readbleOUI to use DB rather than cache

* Make StyleCI changes

* styleCI tweak

* Remove lock release to allow refresh timer

* change migration name to match table

* add schema dump

* update schema

* styleCI tweak
2023-07-21 11:30:13 -05:00
RobJE
65e3edd135
change rrd_prune find command to exlcude .gitignore (#15134) 2023-07-20 11:37:04 -05:00
Arjen Zonneveld
d02cb1bb5b
Update Install-LibreNMS.md (#15152)
Fix spelling of URL anchor
2023-07-20 08:45:13 -05:00
fbourqui
a978476cda
Fortigate ipv6 ipsec (#15150)
* Squash Commit
Fortigate Mib updates and ipsc ipv6 tunnels stat
test data to go allong with it

* add optional -Ih flag

* lint fix

* revert changeed on test data 500d

* fix test data on 60f3g4g
2023-07-20 07:50:49 -05:00
Marek Wobst
0e952b9c98
Add module support for wrapper script calls (#14055)
* Add module support for wrapper script calls

The scripts poller.php and discovery.php offer a module
option (-m), which may be used to specify specific modules
for polling/discovery, possibly for special (and then faster) testing
or for example rediscovering the fdb table (on all hosts).

Until now, this was not possible with the python wrapper scripts.
Now they support a '-m' option, where comma separated module names
may be passed. This will currently only work with poller and discovery, though.

* Replace single quotation signs with double ones (empty strings only)

* Fix more code lines (quotation signs, indentation)

Also 'reduced' if-else-clause size at end of LibreNMS/wrapper.py
(do not call method at each branch, instead prepare a value for modules)

* Add commas after last parameter of dict+methode

Also an additional comment sign before #

* Fix two leftover single quot. signs …

* doc: Add documentation for module support
2023-07-19 23:09:57 -05:00
Zane C. Bowers-Hadley
54a38dd4cd
add the Mojo CAPE Submit app (#15140)
* add poller for mojo cape submit

* mojo_cape_submit poller now works

* add app page for mojo_cape_submit

* add basic generic stat graphs for mojo cape submit

* general size stats graph for mojo_cape_submit

* make sure we update slugs that did not see anything submitted for them

* sort the slugs by sub count

* add app protos graph and sub top 12 graphs

* add mojo cape submit docs

* add tests for mojo_cape_submit

* add mojo_cape_submit to the apps page

* add string helper for mojo_cape_submit

* poke lots of stuff with php-cs-fixer

* remove a unneeded line

* add a missing metric and app data to test
2023-07-19 22:41:51 -05:00
eggbeater98
510d5dc94b
Update dark.css (#15155)
Change text for services to white for visibility.
2023-07-19 22:22:42 -05:00
richard-ririe
4c8e5fc783
Add API endpoint to get service graphs (#15138)
* Add API endpoint to get service graphs

* Docs: Add missing title to get_graph_by_service
2023-07-19 22:19:43 -05:00
hirose003
7cdb81b2e9
change display query to pattern match (#15147) 2023-07-19 22:17:28 -05:00