Commit Graph

19264 Commits

Author SHA1 Message Date
Simon Lockhart
7b08a58e8b Fortigate LTE sensor addition (#13977)
* Update Fortigate OS model to include 4G/LTE stats

* Add Fortigate 60F_3G4G test data

* zero interface counters in fortigate_60f3g4g.snmprec
2022-05-11 18:43:32 +02:00
Michael Graff
cd114b85ed use full sudo path (#13975)
Fror some systems, at least Proxmox, the full path is required to find sudo.
2022-05-11 13:12:41 +02:00
twelch24
402163fec9 fix a typo (#13970) 2022-05-10 11:00:37 +02:00
Martin22
17efcac2eb Added BKE power supply support. (#13972)
* Added BKE power supply support.

* Delete unnecessary snmprec file.

* Renaming the mib file
2022-05-10 10:00:34 +02:00
micko
c3cf527301 Added: auth_ldap_skip_group_check when ldap_compare is not supported (#13926)
* Adding an option (auth_ldap_skip_group_check) to bypass ldap_compare if the server does not support the option

* add auth_ldap_skip_group_check to config_definitions.json

* update resources/lang/en/settings.php

* add missing comma

* rename auth_ldap_skip_group_check to auth_ldap_require_groupmembership and change logic

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-05-06 16:48:01 -05:00
Tony Murray
9f388c932f More realistic test data. (#13969)
Fixes #13966
2022-05-06 15:24:06 -05:00
Zane C. Bowers-Hadley
1416f46197 Remove alert keys from component for Suricata (#13959) 2022-05-06 04:06:20 +03:00
Pierfrancesco Passerini
738ed538ed Small Italian lang update (#13960)
* Update it.json

Removed all  \'/  single quote, very common in italian , to avoid problem on page loading

* Update it.json

small fix

* Update it.json

Small updates

* Update it.json

* Add files via upload

* Delete modules.php

* Delete syslog.php

* Delete install.php

* Add files via upload

* Update plugins.php

* Update validation.php

* Update components.php

* Update sensors.php

* Update install.php

* Update validation.php
2022-05-01 22:57:23 +02:00
Zane C. Bowers-Hadley
3da935a3e6 variable fixes (#13956) 2022-04-29 07:41:23 -05:00
Dan Kerse
83519458b5 Don't use bulkwalk for PrimeKey Appliances (#13958)
Using GetBulk on PrimeKey is inefficient, partly because the mibs are not
organised into tables. Moving to standard walks improves polling speed by around
10 percent.

Also changed over graphs to something more useful.
2022-04-29 13:23:42 +02:00
Lee Keitel
70bae66057 Fix avtech12e sensors (#13943)
* Fix IPv6 in service check host (#13939)

* Add hostName cleaning to Clean

* Apply RFC 5952 formatting to Clean::hostName output

* Use more liberal cleaning for hostnames

* Remove unwanted whitespace

* Apply Clean::hostName() to all relevant fields

* Fix docstring

* Use IP::isValid inline

* Update Clean.php

* Update services.inc.php

Co-authored-by: Tony Murray <murraytony@gmail.com>

* Fix avtech 12E environment sensor

Updated MIB for newer internal sensor object schema in 12E models.

Updated discovery yaml file to retrieve temperature and humidity
data from internal and digital sensors.

Added test data for roomalert12e model.

Co-authored-by: Sander Steffann <sander@steffann.nl>
Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-04-26 09:40:50 +02:00
Zane C. Bowers-Hadley
0357d29835 minor formatting cleanups and document json-app-tool (#13949) 2022-04-26 09:38:16 +02:00
Zane C. Bowers-Hadley
1bdcd8fad2 assorted cleanups to alerting docs, primarily to make mdl happier (#13950)
* make mdl more happy for transports.md

* more tweaks for the splunk bits

* minor fix to entities.md

* try that again...

* ...

* okay, just leave that as is

* minor fixes to templates.md

* remote some trailling spaces

* wrap a line macros.md

* cleanup Rules.md reworked the videos section a bit to be more formatting consistent, I hope

* header cleanup for testing.md

* transports.md cleanup part 2
2022-04-26 09:37:39 +02:00
Santiago Z
72aa258c43 DOCS, switch to dark or light mode (#13953) 2022-04-26 09:35:02 +02:00
Zane C. Bowers-Hadley
cdf457fbc5 add Suricata monitoring (#13942)
* add poller

* add a generic alert graph

* add support for .total

* add the initial work on the suricata app page

* add applayer flow sources

* more rrd work and add more fields

* add a missing graph to the suricata page

* add suricata to the apps page

* all working now for suricata

* add some suricata alert examples

* all done with the php

* update the application docs for Suricata

* add another note about Suricata stats in the docs

* add the test file

* add the test JSON

* remove a unneeded newline from the appication docs

* correct the type uptime type

* packets graph should by packets/sec

* minor formatting cleanup

* one more minor formatting cleanup

* shot in the dark to see if something fixes the angry linter

* fix snmpsim file

* add metrics

* add values to the metrics

* add a missing comma to the json

* add a missing line to snmprec and cleanup json a bit

* a few more minor changes to see if this makes it happy... regened via scripts/json-app-tool.php

* see if this will make it happy

* add suricata to app discovery and hope that fixes it... take a shot in the dark as to why the linter errors strangely on two of the files

* fix json

* add a missing ] to the json

* rename two graphs so it does not trigger one alert and add a missing metric

* whoops, *_alertString is not a metric
2022-04-25 20:30:49 -05:00
Zane C. Bowers-Hadley
f8d76b0571 scripts/json-app-tool.php JSON generation fix and add -S for SNMP extend name (#13948)
* add -S for setting a SNMP extend name and make sure the app is in a array

* minor formatting cleanup
2022-04-25 20:23:28 -05:00
James
f6a7b73c55 Update dark.css (#13951) 2022-04-25 20:13:11 -05:00
dependabot[bot]
30c4e9103c Bump async from 2.6.3 to 2.6.4 (#13947)
Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-23 15:47:35 +02:00
Peca Nesovanovic
dd6c8388d9 [mikrotik] fixed RouterOS ipv4/ipv6 routes (#13902)
* fixed RouterOS ipv4/ipv6 routes

* refresh test data

* Added allowUnordered() to route/ip-forward-mib

* move allowUnordered to YAML

* ipCidrRouteEntry -> ipCidrRouteTable
2022-04-23 08:42:24 -05:00
dependabot[bot]
94ed9f371d Bump composer/composer from 2.2.4 to 2.3.5 (#13944)
Bumps [composer/composer](https://github.com/composer/composer) from 2.2.4 to 2.3.5.
- [Release notes](https://github.com/composer/composer/releases)
- [Changelog](https://github.com/composer/composer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/composer/composer/compare/2.2.4...2.3.5)

---
updated-dependencies:
- dependency-name: composer/composer
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-23 08:36:54 -05:00
Tony Murray
806e10ace1 Fix snmp.timeout setting via Web UI (#13937)
Add Float type for global settings
2022-04-23 08:35:24 -05:00
Peca Nesovanovic
7764faebb5 use builtin "safename" (#13945) 2022-04-23 08:33:36 -05:00
Tony Murray
014213680f Move Config loading to a service provider (#13927)
* Move Config loading to a service provider
That way other service providers can depend on it
Move various random listener registrations into the EventServiceProvider
Various startup cleanup

* Config::persist Set live variable before persisting incase db update fail

* Disable strict mode for legacy code (init.php)

* Disable debug after os test data is gathered

* remove Eloquent::boot it is never used

* remove Eloquent::version

* lint fixes

* style fixes

* there is no c_echo here
2022-04-22 19:12:07 -05:00
Sander Steffann
d4479e12dd Fix IPv6 in service check host (#13939)
* Add hostName cleaning to Clean

* Apply RFC 5952 formatting to Clean::hostName output

* Use more liberal cleaning for hostnames

* Remove unwanted whitespace

* Apply Clean::hostName() to all relevant fields

* Fix docstring

* Use IP::isValid inline

* Update Clean.php

* Update services.inc.php

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-04-22 10:05:55 -05:00
mzacchi
4aaf6f2905 netscaler new counter metrics (#13323)
* Update netscaler.yaml

* Create netscaler.snmprec_sensors.snmprec

* Rename netscaler.snmprec_sensors.snmprec to netscaler_sensors.snmprec

* Create netscaler_sensors.json

* Update netscaler.json

* Update netscaler.yaml

* Update netscaler.json

* Delete netscaler_sensors.json

* Delete netscaler_sensors.snmprec

* Update netscaler.yaml

* Update netscaler.json

* Update netscaler.snmprec

Co-authored-by: Tony Murray <murraytony@gmail.com>
Co-authored-by: Neil Lathwood <gh+n@laf.io>
2022-04-22 01:57:36 -05:00
Philipp Fromme
4a98dc69e3 Add LDAP bind and userlist filter support to ldap-authorization (#13788)
* Add userlist filter to ldap-authorization

* Add LDAP bind user to ldap-authorization

* Type hint getFullDn parameter of ldap-authorization

* docs: add missing options of ldap

* docs: add available options of ldap-authorization
2022-04-22 01:28:29 -05:00
IVI053
3a379431a5 Added --ping-only to snmp-scan.py (#13810)
* added --ping-only and --ping-fallback; deprecated -P

* Updated help text for snmp-scan.py

* format fixes

* appease lint again
2022-04-22 01:27:40 -05:00
Tony Murray
d026e9f0cc Allow unordered OIDs (global and per-os) (#13923)
* Allow unordered OIDs (global and per-os)
Fix global no_bulk setting, was ignored before
(to fix global needed to rework Config::getCombined() a bit to allow a global prefix to be specified)
Removed invalid use of getCombined and updated tests

* fix whitespace

* update os schema
2022-04-21 21:49:26 -05:00
Tony Murray
15feac7297 Bump version to 22.4.0 22.4.0 2022-04-21 21:13:47 -05:00
Tony Murray
67a7aa932f Changelog for 22.4.0 2022-04-21 21:13:46 -05:00
Tony Murray
6ad5fdada5 Validate fixes (#13935)
* Fix version check abort when something goes wrong

* more generic message when failing to parse ajax
2022-04-20 23:10:36 -05:00
Tony Murray
8b82341cb7 Fix services command injection (#13932)
* fix services command injection

* Clean more variables

* Update services.inc.php

* Update services.inc.php
2022-04-20 21:32:36 -05:00
p4k8
3d0e095eb7 Ukrainian translation update (#13933)
* Ukrainian translation update

* whitespace fixes

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-04-20 21:23:25 -05:00
Tony Murray
cc6112b8fb fix graylog xss (#13931) 2022-04-20 01:10:02 +02:00
Tony Murray
9c126572a2 Fix validation page (#13929)
* Validation web page fixes

* Validation web page fixes

* update baseline
2022-04-17 08:38:16 -05:00
Tony Murray
6410775bd5 Fix STP polling bug (#13924)
Column 'topChanges' cannot be null (SQL: update `stp` set `topChanges` ...
2022-04-15 19:33:49 -05:00
Fehler12
b093d8bd25 Remove non-working Dell specific alert rules from the collection (#13706)
* Removed non-working rules and conditions

Removed non-working Dell alert rules and removed constraints fo state_sensor_warning in order to make this rule working

* Update alert_rules.json

* Update alert_rules.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-04-15 16:59:59 -05:00
Tony Murray
849fa21ea0 Revert "Fiberstore Network Management Unit (#13813)" (#13925)
This reverts commit c5502789b9.
2022-04-15 12:22:36 -05:00
Jonathan J Davis
c5502789b9 Fiberstore Network Management Unit (#13813)
* FS OAP OEO and EDFA mibs

* definitions and discovery yaml

* current dbm state temperature and voltage updates

* update on poller and discovery modules

* test data

* removing unneeded pollers and discovery modules as requested

* update to os test data

test data now reflects fs-nmu details instead of module details as module may not be present at previous oid or module may not be present at all in the device

* OS update and Test Date Updates

* channels numbers

* removal of default true poller and discovery modules

* reintroduced previous OEO module data

* StyleCI fixes

* Update fs-nmu.inc.php

* Update fs-nmu.inc.php

* Update fs-nmu.inc.php

* Update fs-nmu.inc.php

* Update fs-nmu.inc.php

Co-authored-by: Neil Lathwood <gh+n@laf.io>
2022-04-15 10:30:41 -05:00
Tony Murray
4ccd6d3937 Handle bad uptime input (#13899)
* Handle bad uptime input
devices returning non-numeric strings or strings with garbage would cause an exception before

* Update Core.php

* Update Core.php
2022-04-15 10:19:54 -05:00
Simon Smith
68b49a0df1 support tplink routers (#13922)
* support tplink TD-W routers

* use sysDescr_regex instead

* Create tplink_dsl

* Rename tplink_dsl to tplink_dsl.snmprec

* add test tplink td-w9970

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-04-15 08:08:00 -05:00
Tony Murray
f024ce5405 Improve alert template saving (#13910)
Instead of checking if the result is empty to see if the template parses, just catch exceptions.
2022-04-14 18:29:29 +02:00
Tony Murray
0a84098211 Port Validation Page to Laravel (#13921)
* Revamp validate web page
 to load page then validate, instead of validate then load page

* style fixes

* lint cleanups

* fixes

* translations and a couple fixes

* style fixes

* move result serialization into the class.
2022-04-14 11:22:40 -05:00
ottorei
e495769f17 Add ISIS-details to alert details (#13920)
* Add ISIS-details to alert details

* Apply fixes from StyleCI

Co-authored-by: StyleCI Bot <bot@styleci.io>
2022-04-14 00:36:13 -05:00
Tony Murray
ac089745bc lnms device:add handle snmp.community bad format (#13914)
handle badly formated snmp.community input.  Some may be a string or not an array of strings.  wrap the single string and discard the array of strings items.
2022-04-13 14:29:00 +02:00
TheMysteriousX
95aaa31dd9 Sensu: Correct type hint (#13915)
* Correct type annotation

Not 100% sure this is correct as I don't know what the previous change was trying to correct - but they're definitely not all strings.

* Correct the correction
2022-04-13 14:25:56 +02:00
Tony Murray
92354e0a12 Better device:add error output (#13913)
* Better device:add error output

* for addhost.php too
2022-04-12 22:07:01 -05:00
Tony Murray
5d0670cdf6 Fix port mini graphs (#13911)
* Fix port mini graphs

* fix whitespace

* taller
2022-04-12 16:30:22 -05:00
Tony Murray
10a25d709f Fix Hytera error (#13909)
Divide by Zero
2022-04-12 08:27:31 -05:00
Santiago Z
02b5ef797b Docs, fix code block in oxidized group (#13908) 2022-04-12 09:18:48 +02:00