Commit Graph

17326 Commits

Author SHA1 Message Date
gardar
14193253fe Add support for windows librenms(check_mk) agent (#11691)
* Allow agent to run against windows os

* Display processes from windows check_mk agent

* Replace tabs with spaces

* Fix indent

* Add documentation for windows agent
2020-05-26 16:04:38 +02:00
Tony Murray
46fa4eac03 Add missing bash lint script (#11700) 2020-05-26 08:28:00 -05:00
PipoCanaja
a635881fa9 Clean mempools code to avoid unnecessary snmpget (#11678)
* IES MemPools OS check

* fortisandbox

* mempools fortiweb

* mempools ies5000

* typo
2020-05-26 08:27:42 -05:00
Tony Murray
ed5bc6c871 Fix some connection issues (#11693)
When mysqld is configured to listen on a non localhost port, pymysql.install_as_MySQLdb() has inconsistent behavior.
Try to import MySQLdb first which has the correct behavior.
2020-05-25 20:01:11 -05:00
Tony Murray
f689fcbef9 CI Helper fixes 3 (#11696) 2020-05-25 14:10:07 -05:00
Negatifff
d932dc85b9 Added OID for EdgeCore models: ES 3528M-SFP, ES 4612, ES 3526 XA, ECS 3510-28T, ECS 4120-28F (#11690) 2020-05-25 20:06:23 +02:00
dupondje
00d00b0fce Add Edgemax support (#11687) 2020-05-25 17:41:52 +02:00
Dragan Savic
79ca57ed28 Fix cisco sensor thresholds (#11547)
* Update functions.inc.php

Skip changing the high limit threshold to low limit threshold value when high limit threshold doesn't exist for a sensor. If low limit threshold value was set by discovery process or manually, the same value would be also set for high limit threshold.

* Update cisco-entity-sensor.inc.php

Skip invalid sensor threshold values, which some Cisco ASR devices (probably other families too) return.

* Add snmprec data for Cisco ASR9010

* Create iosxr_asr9010.josr

* Create iosxr_asr9010.json

* Delete iosxr_asr9010.josr

* Update iosxr_asr9010.json

* Update iosxr_asr9010.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2020-05-25 13:53:38 +02:00
mathieu-oui
c22dad298e Panos - WebUI, mini graphs (#11681) 2020-05-25 10:06:28 +02:00
SourceDoctor
73e2649712 Hardware examples SourceDoctor (#11680) 2020-05-25 02:10:16 +02:00
SourceDoctor
f92caf8cf7 Fix - Seperate default poller id and distributed poller groups (#11584)
* Seperate Setting for default poller id

* revert change

* Travis restart

* fixes
2020-05-24 17:55:11 -05:00
hachpai
4bb064c7ad Enabling general search for ports, devices, and more (#11571)
* Search engine for device, through API

* reviewed port search through API

* fixed die

* Update api_functions.inc.php

* Update api_functions.inc.php

* Update api_functions.inc.php

* Update api_functions.inc.php

* Update api.php

* Update api.php

* Update Ports.md

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-05-24 17:16:07 -05:00
PipoCanaja
a44cdc2f45 Add WAN (3/4g-LTE) support on Huawei AR family (#11619)
* 3g-LTE WAN stats

* Get HW name on AR16x family

* serial for AR

tests

* enable snmpsim log

* Update bootstrap.php

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-05-24 15:57:06 -05:00
Adam Bishop
3acbd72ab1 OS Detection for Mobileiron Core, Sentry appliances (#11510)
* Detection for MobileIron appliances

* Test data

* Remove references for GANDI-MIB

Turns out these aren't actually needed for Linux-likes

* Remove module filters
2020-05-24 15:53:17 -05:00
footstep86
91c04a1d54 Added FortiMail support (#10895)
* Added FortiMail support

* Added FortiMail support

* Update fortimail.inc.php

* optimized discovery

* Syntax change

* Added test data

Co-authored-by: Neil Lathwood <gh+n@laf.io>
2020-05-24 15:45:14 -05:00
Unknown
acd090da81 Corrected wrong path in documentation (#11675) 2020-05-24 13:51:52 -05:00
Tony Murray
ee13299a77 Testing cleanup (#11677)
All tests use transactions
One test isn't a db test...
2020-05-24 13:49:01 -05:00
footstep86
06c991ef57 Added FortiAuthenticator support (#11633) 2020-05-24 11:55:54 -05:00
footstep86
9f82079e2c Added FortiSandbox support (#11593) 2020-05-23 21:41:02 -05:00
SourceDoctor
b89eb22cd5 Enumerate AlertState (#11665)
* Enumerate AlertState

* fix typo

* add missing use's

* .

* .
2020-05-23 21:14:36 -05:00
PipoCanaja
b8c6769049 New corner cases for Huawei VRP BGP (#11663)
* vrp-improve

* add bgp4 data, and get errors

* Fix WRONG Type error on bgpPeerRemoteAs + handle ErrorSubCode in  a generic way

* fixing tests

* clean

* improve state backup to BGP4-MIB

* tests with corrected data

* tests

* restore original tests/data/vrp_5720.json
2020-05-23 21:11:55 -05:00
Tony Murray
e7d954d7df Fix dev:check fail-fast not returning error (#11672)
Fix dantherm definition
2020-05-23 14:43:41 -05:00
PipoCanaja
3c4751e3c7 Fix error breaking poller/discovery on my test machine (#11671) 2020-05-23 13:27:45 -05:00
PipoCanaja
b5c85775e4 Fix states for Dantherm (#11670) 2020-05-23 13:24:35 -05:00
Jellyfrog
b09bc07f8f Laravel 6.x (#11397)
* Update Laravel core files

Fix app/Http/Kernel.php

* Use RouteServiceProvider::HOME

* Sync Laravel default config files

* Update composer dependencies to Laravel 6

* fix resources/lang/en/validation.php

* Manually fixing tests

required by travis, fails locally???

* Update wpb/string-blade-compiler

* Add new viewany() authorization policies

* Update minimum PHP version to 7.2

* Re-generate our json test-dumps

Due to:
https://github.com/laravel/framework/pull/16069
https://github.com/laravel/framework/pull/31100

* update truenas data

* fix truenas

Co-authored-by: Laravel Shift <shift@laravelshift.com>
Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-05-23 12:05:18 -05:00
Maikel de Boer
b3f78ec510 Vendor Dantherm (#11603)
* Build support for Dantherm CC3000 Cooling Controller

* add missing files + test data

* Create dantherm-os.json

* Update dantherm-os.json

* Update dantherm-os.yaml

* Update dantherm-os.yaml

* Update dantherm-os.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2020-05-23 18:51:34 +02:00
Tony Murray
fb162f16b8 dev:check Fallback to full if can't get changed file list (#11667)
* ci should fail fast

* fallback to full if can't get changed file list
mostly happens if the git clone is too shallow on travis-ci

* missed
2020-05-23 10:17:26 -05:00
Tony Murray
f1502a1727 ci should fail fast (#11666) 2020-05-23 08:51:26 -05:00
Tony Murray
ce21011aff Rewrite development helper to lnms dev:check (#11650)
* Refactor pre-commit to class

* docs build

* dusk check

* ci mode for checks

* full checks

* other mysql

* make other lint checks actually work
fix pylint finding

* ci is a long opt

* fix undefined index

* dusk fully working

* ask for forgiveness, not permission

* fix whitespace

* skip dusk sometimes

* Handle 3com and other os with digits

* flags instead of if else spaghetti

* convert to command

* cleanup

* missed check

* fixes

* case

* self-check :D

* argument now

* fix bugs from refactors

* another fix

* adjust file change parsing

* refactor execut a bit

* fallback to global quiet when unknown type.

* allow quiet override for specific commands

* output cleanup

* check flow

* start of tests

* file categorizer tests and fixes

* fixes and cleanup

* skipable not implemented...

* more tests, fix bugs

* more tests and cleanup

* wrong command

* fix canCheck and set env properly

* full env fix

* don't allow dusk on user's run as it will erase their db.

* fix os option

* fix whitespace

* don't need to start server

* ci doesn't like that
2020-05-22 20:27:48 -05:00
TheGreatDoc
0b7373d973 Update Installation-CentOS-7-Nginx.md (#11629) 2020-05-22 20:27:16 -05:00
SourceDoctor
9272cb3b92 Enumerate Alert Level (#11652) 2020-05-22 20:08:05 -05:00
Tony Murray
5fc3fcb9e8 Make migrations work in SQLite (#11643)
* WIP Sqlite

Down methods don't work either, avoid them with refresh for now.

WIP persistent support

WIP db_schema

WIP db_schema 2

Update new migrations...

revert dump_db_schema changes for now, too much difference.

fix migrations on mysql

fix up some more items, this should be our target schema
lots of index renames and a two misc changes

index rename WIP

index rename WIP

another round

fix up new schema changes

try case insensitive fix

Trying tests WIP

fix down methods

DBSetupTest working (uses mysql)

Test sqlite migrations work

* Properly validate sqlite output

* revert glue changes, should be separate PR

* remove dusk workaround

* remove unused variables

* import

* sqlite capitalization

* Revert some refresh tests

* testing_mysql back to testing
2020-05-22 16:49:21 -05:00
SourceDoctor
5927983c50 Maintenance Mode via Device Settings (#11649) 2020-05-22 15:14:03 +02:00
cjwbath
3c850fbcb2 Fix the PANOS HA state check alert rule from collection 2020-05-22 11:28:41 +02:00
Facundo Caselles
2f86c66afa WebUI - Improved "dark" theme (#11417)
* -Real dark mode, (themed bootstrap)
-removed inverted colors in navbar

* Test data

* FIX: navbar in mono theme.

* Dark mode rrdtool

* Changed background on gridster to match background of the dark theme

* - Icons and links now are grey
- Modernized tabs style into pills,
- button pagemenu-selected fixed

* Improvements:
- bootgrid-th, are now visible (dark mode to the table headings)
- Changed line color of poller and ping in rrdtool

* Fix some codeclimate errors

* Fix airos.snmprec, reverted to original file
2020-05-21 19:04:54 -05:00
craig-nokia
bffa46f34a Update the options for distributed_poller (#11655)
Added $config[] and enabled the remi repository for redis.
2020-05-22 01:16:56 +02:00
Heath Barnhart
e414352356 OSPF SNMP Trap Handlers (#11647)
* Intitial push working tests

* Adding unit tests

* created interface state unit tests

* started ospf nbr unit tests

* finished nbr change unit tests

* precommit checks pass

* removed uneccsarry relationship
2020-05-21 15:15:39 -05:00
footstep86
b71d933ac9 Updated FortiWeb support (#11632) 2020-05-21 15:14:56 -05:00
TheGreatDoc
fd89854012 Fix smokeping config definition (#11651)
* Fix config definition for smokeping

* Fix config definition for smokeping

* Updated mix-manifest
2020-05-21 10:16:24 -05:00
Adam Bishop
3838549748 Fix test behaviour with PHP 7.4 on Fedora 32 (#11648)
* Handle cases where the data type is hex encoded, but the data is
not actually hex encoded.

* Test data claims 4x, but is not hex encoded

* Encode the private string

* Replace 4x|<private> with 3C707269766174653E

* Re-run save test data.

Seems some of these files might have been hand edited at some point
as fields seem out of order

* Have a trap test use a mock instead of a db query
2020-05-21 08:22:55 -05:00
Dan Baker
77b87cbb61 Updated Waveserver MIBs and fixed interface naming (#11646) 2020-05-20 17:36:07 -05:00
Tony Murray
266e80ef54 Show Laravel version in about (#11641)
* Show Laravel version in about
We haven't used silk icons in a long time...

* a few cleanups and links
2020-05-20 17:33:31 -05:00
TheGreatDoc
370c7f5662 Added link to smokeping interface + smokeping options to global settings (#11610)
Co-authored-by: Daniel Baeza <d.baeza@tvt-datos.es>
2020-05-20 08:25:27 -05:00
Tony Murray
4b141a068a python3 only for snmp-scan.py (#11623)
A tiny bit of cleanup too.
2020-05-20 08:24:09 -05:00
jonasblomq
caf1cd3707 Update Fast-Ping-Check.md (#11645)
Added stopping and starting RRDCached during the change of the rrd files step.
This will prevent data loss and corruption of the rrd files.
2020-05-20 08:09:23 -05:00
dependabot[bot]
7aeb3f619c Bump jquery from 3.4.1 to 3.5.0 (#11644)
Bumps [jquery](https://github.com/jquery/jquery) from 3.4.1 to 3.5.0.
- [Release notes](https://github.com/jquery/jquery/releases)
- [Commits](https://github.com/jquery/jquery/compare/3.4.1...3.5.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-05-19 23:20:48 -05:00
Tony Murray
f1320b6510 Speed up tests by skipping pings (#11642)
* Mock fping for module tests, there is no need.
Removes some wait time.

* fixup some rrd disabling code

* oops
2020-05-19 22:08:41 -05:00
SourceDoctor
b41d262537 Application State Icons (#11630) 2020-05-19 19:21:02 -05:00
Dan Baker
cbb0b5219e Added support for Ciena service delivery switch family (#11636) 2020-05-19 14:37:58 -05:00
joseUPV
abd9600ba4 Fix unit state sensor oid for aos6 (#11639)
* Fix unit state sensor oid for aos6

* added fixed aos6 test data
2020-05-19 14:36:20 -05:00