Commit Graph

18095 Commits

Author SHA1 Message Date
paulierco
95603e494a
Alcatel-Lucent support part2 (#12369)
* Alcatel-Lucent support part2

* fixing low temp for aos6, mem for aos6 and linkagg for both

* style for aos6.yaml

* style2 for aos6.yaml

* fix style

* fix style

* add test data
2021-01-03 18:57:47 +01:00
Torch
187165e464
Added IES 5206 and 5212 test files (#12373)
Added IES 5206 and 5212 to supported sysObjectIDs
2021-01-03 18:46:45 +01:00
CrazyMax
4126dddf73
GitHub Actions dev:check ci (#12392)
* Refactor test for GitHub Actions

* Checkout pull request HEAD commit instead of merge commit

* Fetch changed files from API instead of git

* HEAD commit

* Origin

* Fix env

* force full unit checks on gh actions change

* Fix DB conn

* Update test.yml

* Also set port in PDO connection

* Exit with correct exit code

* Update CiHelper.php

* Update test.yml

* Update CiHelper.php

* Update Proc.php

* Cleanups

Remove extra unit test run on php 7.4
Add names that will hopefully show in github.
Remove redundant DB env variables.

* Fix

Shorter names
and DB_TEST env is required

* Change command for information purposes

Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
Co-authored-by: Tony Murray <murraytony@gmail.com>
Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-01-03 00:54:01 -06:00
SourceDoctor
590b3ad123
Show Device Group on Map (#12379)
* Show Device Group on Map

* style fix

* .

* .
2021-01-02 22:06:52 +01:00
Erkan
7f93e2220d
Update functions.inc.php (#12406)
I think left and right text is inverse. Example in page with all processor, percent_used is at the right instead of left
2021-01-02 00:47:41 +01:00
djamp42
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
Richard Lawley
c6c046f172
Document flattened Inventory API function (#12404) 2021-01-02 00:07:33 +01:00
dlehman83
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
Jellyfrog
c3d47dee4a
Apply fixes from StyleCI (#12412) 2020-12-30 15:37:08 +01:00
SourceDoctor
9c248d1b52
Doc - Increase Nginx Timeout (#12368)
* Doc - Increase Nginx Timeout
2020-12-30 14:38:59 +01:00
FingerlessGloves
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
djamp42
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
SourceDoctor
8e718d6e4f
don't show gelocation on snmp location string (#12384) 2020-12-12 18:06:04 +01:00
Hans Erasmus
d23ed0dd6e
Update to incorporate new locking mechanisms (#12388) 2020-12-12 18:02:11 +01:00
dependabot[bot]
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
Alex Muthmann
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
Tony Murray
a3635d0b73
remove unused openssl_ver (#12378) 2020-12-03 09:33:26 -06:00
Tony Murray
e2fb7ba635
Fix version compare (#12376)
* Fix daily.sh version compare

* 1.70.1
2020-12-02 08:39:06 -06:00
Tony Murray
84c08f424c Bump version to 1.70.0 2020-12-01 22:01:19 -06:00
Tony Murray
4ae5f76fe8 Changelog for 1.70.0 2020-12-01 22:01:17 -06:00
Hayden
25087a6828
added expiration for alerts cache::lock() (#12375) 2020-12-01 18:16:15 -06:00
Tony Murray
ff49d7c42b
Auth add ip to auth failure log entry (#12374) 2020-12-01 14:00:58 -06:00
Hans Erasmus
0a7586b9ff
Fix php min version (#12372) 2020-12-01 08:45:53 +01:00
CrazyMax
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
Lucas Dousse
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
Torch
bb7e34d8af
Added Eltek SmartPack2 Syst. (#12352) 2020-11-26 00:11:11 -06:00
CrazyMax
d8c617d2ae
GitHub Actions for doc (#12353)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-11-25 22:18:02 +00:00
Tony Murray
927fac6ca7
Fix bad link in docs (#12357) 2020-11-25 11:40:35 -06:00
Tony Murray
39f6b35bf0
Respect device access for health mempools page (#12356) 2020-11-25 10:43:57 -06:00
Tony Murray
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
Tony Murray
23e8544913
Revert "Change mempools summary graph to show values (#12349)" (#12354)
This reverts commit 7a027f8467.
2020-11-25 10:10:01 -06:00
Tony Murray
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
Tony Murray
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
Tony Murray
4edf30e5fb
fix mempool links from overview (#12348) 2020-11-24 07:50:35 -06:00
Tony Murray
304ebc08ad
Revert "Python log mysql connection errors and harden config retrieval (#12058)" (#12347)
This reverts commit c149ce0b3a.
2020-11-24 07:26:42 -06:00
Jellyfrog
305f97161a
Fix regressions from cfd9dce620 (#12344) 2020-11-24 00:16:41 +01:00
Tony Murray
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
Jellyfrog
b022a30a5b
Apply fixes from StyleCI (#12343) 2020-11-23 19:56:23 +01:00
Tony Murray
2b59ff5fda
Add system validation (#12337)
validate lnms link and completion
validate log rotation file is installed
2020-11-23 09:46:22 -06:00
Orsiris de Jong
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
Olen
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
Tony Murray
7ed34c889e
Distributed Poller improved validation (#12269) 2020-11-23 00:33:56 -06:00
SourceDoctor
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
Jellyfrog
1220d583e9
Apply fixes from StyleCI (#12336) 2020-11-21 22:52:58 -06:00
Tony Murray
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
SourceDoctor
b162eff5ee
Global Settings - Discovery Network (#12334)
Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-11-21 18:08:46 +01:00
SourceDoctor
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
ottorei
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
hartred
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