18090 Commits

Author SHA1 Message Date
1536b32907 Fix broken evaulation on auto discovery (#12408)
My Cisco IP phones were still being auto discovered even when i had autodiscovery.xdp set to false, and it wasn't ignoring them for the auto discovery regex either. This statement had some misplaced Parenthesis. Working now on my install with this fix.
2021-01-02 00:22:55 +01:00
c6c046f172 Document flattened Inventory API function (#12404) 2021-01-02 00:07:33 +01:00
9f591c0aa2 Update Documentation (#12411)
* Update Documentation

Most work in Graylog and SNMP
Fixed many code tags, spelling and wording.
Added SNMP PowerShell example.

* Update SNMP-Configuration-Examples.md

Fix TOC brackets
2020-12-30 15:38:14 +01:00
c3d47dee4a Apply fixes from StyleCI (#12412) 2020-12-30 15:37:08 +01:00
9c248d1b52 Doc - Increase Nginx Timeout (#12368)
* Doc - Increase Nginx Timeout
2020-12-30 14:38:59 +01:00
64601866ac Update OPNsense version Regex, for _ releases (#12407)
Update OPNsense version Regex, for when underscores are used in OPNsense releases.
2020-12-29 23:53:00 +01:00
9ccb707335 Update Distributed-Poller.md Discovery using dispatcher service (#12387)
* Update Distributed-Poller.md

Clarify discovery when using dispatcher service. The limitation of running one discovery per server is only for cron based polling.

* Update Distributed-Poller.md

Co-authored-by: Neil Lathwood <gh+n@laf.io>
2020-12-17 21:17:59 +00:00
8e718d6e4f don't show gelocation on snmp location string (#12384) 2020-12-12 18:06:04 +01:00
d23ed0dd6e Update to incorporate new locking mechanisms (#12388) 2020-12-12 18:02:11 +01:00
42df05c947 Bump ini from 1.3.5 to 1.3.8 (#12395)
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-12 18:00:52 +01:00
980e4a6a28 Update docs for raspberry.sh (#12389)
When using the original docs for the raspberry.sh script all I got in the SNMP output was `nsExtendOutLine."raspberry".1 = sudo: No such file or directory`

this can be fixed by using the complete path to the sudo command.
2020-12-10 01:02:30 +01:00
a3635d0b73 remove unused openssl_ver (#12378) 2020-12-03 09:33:26 -06:00
e2fb7ba635 Fix version compare (#12376)
* Fix daily.sh version compare

* 1.70.1
1.70.1
2020-12-02 08:39:06 -06:00
84c08f424c Bump version to 1.70.0 1.70.0 2020-12-01 22:01:19 -06:00
4ae5f76fe8 Changelog for 1.70.0 2020-12-01 22:01:17 -06:00
25087a6828 added expiration for alerts cache::lock() (#12375) 2020-12-01 18:16:15 -06:00
ff49d7c42b Auth add ip to auth failure log entry (#12374) 2020-12-01 14:00:58 -06:00
0a7586b9ff Fix php min version (#12372) 2020-12-01 08:45:53 +01:00
a0062aa633 Remove hardcoded URLs to doc (#12364)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-11-27 23:34:58 +01:00
2a98076515 New Logo Opnsense (#12359)
* Logo with best definition

* png to svg

* png to svg

* Change filename in test

* minify svg
2020-11-26 21:49:02 +01:00
bb7e34d8af Added Eltek SmartPack2 Syst. (#12352) 2020-11-26 00:11:11 -06:00
d8c617d2ae GitHub Actions for doc (#12353)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-11-25 22:18:02 +00:00
927fac6ca7 Fix bad link in docs (#12357) 2020-11-25 11:40:35 -06:00
39f6b35bf0 Respect device access for health mempools page (#12356) 2020-11-25 10:43:57 -06:00
5d3e06ee69 Change mempools summary graph to show values v2 (#12355)
* Change mempools summary graph to show values
put swap on the negative axis
fix swap classification

* fix whitespace

* fix incorrect class
fix rrd rename logic

* Style

* missed one

* observe with the correct class
2020-11-25 10:31:24 -06:00
23e8544913 Revert "Change mempools summary graph to show values (#12349)" (#12354)
This reverts commit 7a027f8467a88dcf96ac1f85ec7af267b1f52b60.
2020-11-25 10:10:01 -06:00
7a027f8467 Change mempools summary graph to show values (#12349)
* Change mempools summary graph to show values
put swap on the negative axis
fix swap classification

* fix whitespace

* fix incorrect class
fix rrd rename logic

* Style

* missed one
2020-11-25 10:06:20 -06:00
e8d0548317 Fix nets can't add (#12341)
fix some issues with the list settings widget
update Laravel Mix
update javascript
2020-11-24 19:47:40 -06:00
4edf30e5fb fix mempool links from overview (#12348) 2020-11-24 07:50:35 -06:00
304ebc08ad Revert "Python log mysql connection errors and harden config retrieval (#12058)" (#12347)
This reverts commit c149ce0b3acc8e06c1ae9b427c09d07137985815.
2020-11-24 07:26:42 -06:00
305f97161a Fix regressions from cfd9dce620f7205357e96cf22d65d6ad26759d69 (#12344) 2020-11-24 00:16:41 +01:00
f2f169ae78 Modernize mempools (#12282)
* mempools to modern module
quick hacky hrstorage port

* port ucd-snmp-mib to Mempools

* Populate DB for ucd
Prep for yaml

* initial yaml attempt

* more complex conversions
fixes to YamlDiscovery, make leading $ optional and allow mib::oid format

* walk full tables and skip values
normalize percentages above 100

* handle precent only ones (specify total as 100)

* Move default polling out of YamlMempoolsDiscovery

* fixes

* Update test data hrstorage should be correct.

* perc_warn for hrstorage

* Host Resources, record buffer, cached, and shared

* Host Resources is always better, don't do both HR and UCD

* fix unix, include warning levels

* variable size

* consolidate skip_values

* define mempools schema

* number instead of integer

* more schema refactor

* one more skip_values reference

* throw error for invalid oid translation
aos6

* a*  and Cisco

* updated test data

* update almost all hrstorage data files

* b*

* c* with test data
use standard cache for hrStorage

* use cache for storage module too

* hand bsnmp properly

* bdcom

* exclude total oid from yaml so it is not polled
May add a way to ignore this behavior and poll it, but I don't know if that is needed.

* automatically handle percent only values

* ciscowlc

* only poll used or free if we have used, free, and total.

* fix skipping

* the dlinkoning
fix find value when value "name" is numeric

* support numeric oids

* dnos/ftos attempt

* I guess we can't filter on total > 0

* edgecos

* e*

* f WIP

* f*

* gwd (aka g*)

* h* + procurve

* i*

* j*

* m*

* support 0% used memory (however unlikely)

* n*

* CISCO-PROCESS-MIB memory, share cache with processors module

* ignore mempools with invalid total

* p*

* quanta

* r*
fix raisecom mibs terribly broken

* s-z

* style fixes

* Move VRP back to PHP and make it actually work

* fix zynos

* update schema

* Update Cisco processor data for description bug fixes

* fix comware processors

* comware mempools with memory size
default precision to 1

* sophos-xg updated data

* hrstorage use ram size for buffers, cache, and shared

* Show memory available instead of free in device overview

* UCD, use same rrd format, store available instead of free in the db.

* Calculate availability for HOST-RESOURCES-MIB

* Convert UCD to standard polling

* rename old rrd files

* initial graph work

* graph WIP

* Graph looking decent

* Graph looking decent for hr

* remove old ucd_graph code

* handle availability mempool
more graph cleanup

* color adjustments

* remove accidental free calculation

* Update test data and fix corner cases

* fis pfsense

* update schema

* add default value for mempool_class

* fix whitespace

* update schema

* update schema correctly

* one more time

* fortigate_1500d-sensors missing oids

* Update docs.

* fix indent

* add implements MempoolsDiscovery explicitly to OS

* remove ucd_memory graph references
remove unused device_memory graph

* remove unused functions

* set devices with mempools to rediscover to prevent/minimize gaps

* use a subquery

* add overview graph

* port health mempools table

* Update device mempool

* only show overview if multiple

* Don't override user set warn percentages in discovery

* fix missed usage

* fix style

* Safety check to not rename rrd files incorrectly if migration has not been run.

* Fix overview percent bar and represent available and used on the bar

* missed an item to convert to mempool_class

* percent on the wrong side
2020-11-23 15:35:35 -06:00
b022a30a5b Apply fixes from StyleCI (#12343) 2020-11-23 19:56:23 +01:00
2b59ff5fda Add system validation (#12337)
validate lnms link and completion
validate log rotation file is installed
2020-11-23 09:46:22 -06:00
c149ce0b3a Python log mysql connection errors and harden config retrieval (#12058)
* Make usage of logger, also harden exception logging

* Make usage of hardened command_runner

This is a hardened version of subprocess.call which handles timeout, encoding and various errors that may happen during execution

* Remove unused exception logging

* Fix bogus exception logging

* Rename exception to match log line

* Make command_runner pylint friendly under Unix

* Add copyrights to my parts of code
2020-11-23 00:35:49 -06:00
4bdcb7d88e IRC Adding floodcontrol. Better alerts (#12141)
* Adding floodcontrol. Better alerts

* Code cleanup

* Code cleanup take 2

* Deduplicate code for sending alerts

* Keeping PRs in sync

* this->sendAlert...

* Allow filtering by hostname in ".log" command

* StyleCI

* StyleCI
2020-11-23 00:35:19 -06:00
7ed34c889e Distributed Poller improved validation (#12269) 2020-11-23 00:33:56 -06:00
7550ef1d8c Show associated Alert Rules on Alert Templates (#12259)
* Show associated Alert Rules on Alert Templates

* rewrite to Eloquent

* eager load

* style fix

* style fix

* update query

* change query
2020-11-23 00:32:17 -06:00
1220d583e9 Apply fixes from StyleCI (#12336) 2020-11-21 22:52:58 -06:00
1afc6abdb5 Always return json for api requests (#12335)
even if the client does not properly request it
2020-11-22 03:21:47 +01:00
b162eff5ee Global Settings - Discovery Network (#12334)
Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-11-21 18:08:46 +01:00
fde1b1ab43 Interface description types to Global Settings (#12291)
* Special Ports to Global Settings

* customers_descr type fix

* add mix-manifests - move section

* move to webui :P

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-11-21 11:44:33 +01:00
Meh
c53dec796e Added devices unpolled alert rule template (#12321)
* Update alert_rules.json

Added devices unpolled alert template

* Update alert_rules.json

* Use coalesce to provide default value

* Update alert_rules.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-11-20 22:22:45 -06:00
a7e65be09d Bugfix: SQL error with alerts search bar (#12329)
* Fix SQL-error on search bar

* restore escapes

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-11-20 22:13:59 -06:00
c66d6493fa SNR-ERD add support RSensor-H/T/P (#12328)
* SNR-ERD add support RSensor H/T/P

yaml

* SNR-ERD add support RSensor H/T/P

test json

* SNR-ERD add support RSensor H/T/P

snmpsim
2020-11-20 21:25:46 -06:00
a3470bb06e Custom_descr Ports - configurable Icons (#12331)
* Custom_descr Ports - configurable Icons

* fixes

* fixes
2020-11-20 20:59:54 -06:00
04f29c2717 Fix Device Dependency Count Limitation (#12332) 2020-11-20 20:58:08 -06:00
820cf1dcca Fix disabling of built-in commands when using ./lnms (#12308)
* Fix disabling of built-in commands when using ./lnms in production

It wasn't working correctly after Laravel upstream changes

* Use nunomaduro/laravel-console-summary

* fix command name

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-11-19 22:51:20 +01:00
aded238299 Do not run validate.php as root (#12327) 2020-11-19 22:41:32 +01:00
0ede8a2c1d API - Allow Hostname on add/remove Device Dependencies (#12319)
* API - Allow Hostname on add/remove Device Dependencies

* style fix

* change device placeholder name
2020-11-18 20:23:07 -06:00