Commit Graph
20132 Commits
Author SHA1 Message Date
Justin LentzandGitHub 6ad3ff9b97 change leaflet.default_zoom to Float (#15207)
Leaflet accepts float for default zoom.
2023-08-08 11:36:23 +02:00
Tony MurrayandGitHub e100d17665 Netscaler, don't use 0 divisor (#15204) 2023-08-05 12:12:53 -05:00
Tony MurrayandGitHub d1b7004fef Severity Enum (#14620)
* Severity Enum
Replace old Alert constants

* Fix whitespace

* Additional uses

* style fixes

* Fix test too

* More missed locations

* More
2023-08-05 12:12:36 -05:00
Tony MurrayandGitHub 9382959c8c Set mibs explicitly in SnmpQuery (#15199)
* Set mibs explicitly in SnmpQuery
Always override system mibs, so we have consistency
New method to control mibs

* Lint fixes
2023-08-05 14:45:15 +02:00
Tony MurrayandGitHub d66c09623f Only dump snmp logs on failure (#15200)
saves 3 minutes
2023-08-05 13:09:00 +02:00
0c57bdc25b Apply fixes from StyleCI (#15203)
Co-authored-by: StyleCI Bot <[email protected]>
2023-08-05 13:08:27 +02:00
Tony MurrayandGitHub 3170ec1399 Fix vendor_ouis duplicates in migration (#15202)
* Fix vendor_ouis duplicates in migration
Can't trim the duplicates efficiently due to lacking an index on oui.

* fix style

* restrict columns to make strict group by happy.
2023-08-04 20:57:48 -05:00
eskyuuandGitHub 6fb784a321 Apply service templates on a per-device basis (#15024)
* Created and use a function to apply service templates on a per-device basis

* formatting fix
2023-08-04 19:05:07 -05:00
de65ff55fc Implement LINE Messaging API (#14867)
* implement LINE Messaging api

* apply code clean up

* Update Linemessagingapi.php

* fix variable type

* Match branding

* Remove extra proxy

---------

Co-authored-by: Neil Lathwood <[email protected]>
Co-authored-by: Tony Murray <[email protected]>
2023-08-04 12:30:46 -05:00
Santiago ZandGitHub adc953a9a2 [DOC] Added social links in footer (#15195)
* [DOC] Added copyright and social links in footer

* Update mkdocs.yml
2023-08-04 17:56:43 +02:00
Tony MurrayandGitHub 034ca2d418 Handle empty dbSchema table (#15198)
For example during install.  Seeder is run after migrations.
2023-08-04 08:31:00 -05:00
Tony MurrayandGitHub 5b409a3700 yaml indent fine tuning (#15189) 2023-08-04 13:28:37 +02:00
Tony MurrayandGitHub 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
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 <[email protected]>
2023-08-03 19:55:09 -05:00
VTSandGitHub 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 MurrayandGitHub 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 MurrayandGitHub 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
JellyfrogandGitHub 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 LathwoodandGitHub d4baa34b87 Fixed a zero value data insertion for billing (#15194) 2023-08-03 19:22:55 -05:00
Tony MurrayandGitHub e0a20fced0 Fix security fix breaking display (#15192)
Escaped a <br />
2023-08-03 11:02:55 -05:00
Tony MurrayandGitHub 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 MurrayandGitHub c1a4ca135c OS discovery clarification (#15182)
* OS discovery clarification

* Update Initial-Detection.md
2023-08-02 23:44:20 +02:00
Tony MurrayandGitHub 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 MurrayandGitHub 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 MurrayandGitHub 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 ZandGitHub d810c7a648 [DOC] Remove ~$ from BIND9 code block aka named (#15181) 2023-08-02 08:38:22 -05:00
Zane C. Bowers-HadleyandGitHub 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 MurrayandGitHub 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 LentzandGitHub 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 LentzandGitHub 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
fufromaandGitHub 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
tarikandGitHub 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 MurrayandGitHub 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 MurrayandGitHub 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 MurrayandGitHub 1723f96b40 remove pingcheck debug statements (#15173) 2023-07-31 12:26:25 -05:00
Santiago ZandGitHub 1935d7400b Update Changelog.md (#15168) 2023-07-28 12:27:06 +02:00
pjordanovicandGitHub 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
JellyfrogandGitHub 1a6fe2bff7 Update composer dependencies (#15167) 2023-07-26 22:24:37 +02:00
viptampaandGitHub cd0d839ce0 Update Routeros.md (#15165)
Spelling and grammar
2023-07-26 18:37:31 +02:00
Neil LathwoodandGitHub 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 MurrayandGitHub 3908bddb49 Miscellaneous fixes (#15162) 2023-07-26 01:08:10 +02:00
Janno SchouwenburgandGitHub 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 LathwoodandGitHub a69d50e962 Added basic support for distributing billing (#15156) 2023-07-25 12:09:34 -05:00
Tony MurrayandGitHub 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
viptampaandGitHub 5172e63d39 Update Routeros.md (#15160)
Updated for formatting
2023-07-25 10:36:09 +02:00
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 <[email protected]>
2023-07-24 21:47:46 -05:00
Peter ChildsandGitHub 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 MurrayandGitHub cce3dc0746 Discord Transprot user configurable embed fields (#15068) 2023-07-24 18:53:34 -05:00
viptampaandGitHub f9d16238c9 Update Routeros.md (#15158)
Provided clarity on how to install.
2023-07-24 18:43:09 -05:00
Zane C. Bowers-HadleyandGitHub 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