Commit Graph

16007 Commits

Author SHA1 Message Date
Tony Murray
5f752361f5
Merge ethernetprobe2 into akcp and improve akcp (#9465)
* Merge ethernetprobe2 into akcp and improve akcp
Use higher resolution temperature values if available
Properly hand F/C temperature scales (LibreNMS always uses C)
Add current, voltage, airflow (no test data)
Move humidity to yaml

* Update akcp.snmprec

* Update akcp-serverprobe8.json

* Add group

* Update test data
remove old MIB
2019-01-17 11:38:33 -06:00
Tony Murray
f1928461a8
Run both legacy schema and migrations in the same run if needed (#9686)
That way any new migrations get applied when needed
2019-01-17 11:37:14 -06:00
Tony Murray
3099b6793a
Make Eloquent models in the correct place (#9681)
* Make Eloquent models in the correct place

* Docs to indicate what command should be run to make a new table
2019-01-17 09:00:25 -06:00
Tony Murray
10f6eac677
Validate database constraints (#9670)
* Validate database constraints

* Fix some differences with migrations

* Update functions.php
2019-01-17 08:59:42 -06:00
Tony Murray
9da12ee8af
Fix github-remove database dir cleanup (#9678) 2019-01-17 08:58:46 -06:00
Tony Murray
e403d01967
Fix first column validate (#9683)
* Fix first column validate

* fix index, remove vardump
2019-01-17 08:58:26 -06:00
Tony Murray
a991270fa7
Fix dbSchema 1000 skipping schema files (#9685) 2019-01-17 08:53:32 -06:00
PipoCanaja
f251c524b5
Merge pull request #9677 from murrant/dbal
add dbal so users can update the database
2019-01-16 17:49:43 +01:00
Tony Murray
6e8e2eed0d add dbal so users can update the database 2019-01-16 09:52:56 -06:00
Stefan
3dbde001bd Typo for JunOS in documentation (#9676) 2019-01-16 07:35:12 -06:00
TheGreatDoc
bfcfff6b5e
Merge pull request #9639 from murrant/snmp-exec-timeout
Increase snmp execution time limit to 20 minutes
2019-01-16 13:57:38 +01:00
TheGreatDoc
1a565d1294 Added documentation 2019-01-16 07:47:24 +01:00
PipoCanaja
8e80121c33 Add group to sensor 1st discovery + template syntax {{ $xxx }} (#9667)
* add group to sensor initial discovery and use dynamic_discovery_get_value template syntax on them

* spaces

* switching to YamlDiscovery::replaceValues

* testdata from ibmc

* testdata from nxos

* testdata from omnitron-iconverter

* testdata from vrp

* adapt discovery_schema to accept variables

* remove pattern

* Update discovery_schema.json
2019-01-15 20:56:30 -06:00
Tony Murray
d33d87931e
Update dependencies (#9657)
* Update dependencies
phpmailer/phpmailer (v5.2.26 => v5.2.27)
symfony/dotenv (v3.4.15 => v3.4.21)
amenadiel/jpgraph (3.6.20 => 3.6.21)
tecnickcom/tcpdf (6.2.22 => 6.2.26)
php-amqplib/php-amqplib (v2.0.2 => v2.8.1)
symfony/polyfill-ctype (v1.9.0 => v1.10.0)
symfony/yaml (v2.8.45 => v2.8.49)
vlucas/phpdotenv (v2.5.1 => v2.5.2)
symfony/css-selector (v3.4.15 => v4.2.2)
symfony/polyfill-mbstring (v1.9.0 => v1.10.0)
symfony/var-dumper (v3.4.15 => v3.4.21)
symfony/process (v3.4.15 => v3.4.21)
paragonie/random_compat (v2.0.17 => v2.0.18)
symfony/polyfill-php70 (v1.9.0 => v1.10.0)
symfony/http-foundation (v3.4.15 => v3.4.21)
symfony/contracts (v1.0.2)
symfony/event-dispatcher (v3.4.15 => v4.2.2)
psr/log (1.0.2 => 1.1.0)
symfony/debug (v3.4.15 => v3.4.21)
symfony/http-kernel (v3.4.15 => v3.4.21)
symfony/finder (v3.4.15 => v3.4.21)
symfony/console (v3.4.15 => v3.4.21)
nesbot/carbon (1.33.0 => 1.36.2)
monolog/monolog (1.23.0 => 1.24.0)
league/flysystem (1.0.47 => 1.0.49)
doctrine/inflector (v1.1.0 => v1.3.0)
ralouphie/getallheaders (2.0.5)
guzzlehttp/psr7 (1.4.2 => 1.5.2)
jakub-onderka/php-console-color (0.1 => v0.2)
nikic/php-parser (v3.1.5 => v4.1.1)
fico7489/laravel-pivot (2.3.7 => 3.0.0)
fideloper/proxy (4.0.0 => 4.1.0)
squizlabs/php_codesniffer (2.9.1 => 2.9.2)
barryvdh/reflection-docblock (v2.0.4 => v2.0.6)
symfony/class-loader (v3.4.15 => v3.4.21)
jakub-onderka/php-console-highlighter (v0.3.2 => v0.4)
psy/psysh (v0.9.8 => v0.9.9)
laravel/tinker (v1.0.7 => v1.0.8)
myclabs/deep-copy (1.7.0 => 1.8.1)
doctrine/instantiator (1.0.5 => 1.1.0)
webmozart/assert (1.3.0 => 1.4.0)
phpdocumentor/reflection-docblock (3.3.2 => 4.3.0)
phpunit/php-token-stream (1.4.12 => 2.0.2)

* limit laravel-pivot to <3.x because that requires laravel >= 5.5

* don't disable requirements

* update to master and exclude vendor database migrations and seeds

* a couple more updates
2019-01-15 17:34:05 -06:00
Neil Lathwood
f8cf6a93b3 Removed NO_AUTO_CREATE_USER from mysql strict to support MySQL 8 (#9668)
* Removed NO_AUTO_CREATE_USER from mysql strict

* Fixed tests
2019-01-15 01:21:00 -06:00
Tony Murray
394c40e541
Implement filter helpers for ajax table controllers (#9660)
Reduces boiler plate code.
2019-01-14 14:00:05 -06:00
PipoCanaja
33c886247c Sorting States using groups (#9666) 2019-01-14 11:53:27 -06:00
TheGreatDoc
1f1fcf56fb
Merge pull request #9664 from librenms/murrant-patch-2
FAQ LibreNMS and MIBs
2019-01-14 16:10:17 +01:00
Tony Murray
622c7ce38b
FAQ LibreNMS and MIBs 2019-01-14 08:36:54 -06:00
Tony Murray
1222ffae0b
Order by support for availability map widget (#9663) 2019-01-14 08:09:32 -06:00
Paul Heinrichs
ebe2ecf524 Laravel migrations (#8868)
* Add migrations and seeds

* Fix spacing validation issues

* Fix linting

* Update tabs to spaces

* Update daily and install process

* Make build-base.php use the new migrations if empty or at dbschema 1000.
Seed 1000 into the database.
Temp fix for the route table index length (this table basically isn't used...)

* Fix typo in seed.
Hard code legacy schema checks to version 1000 (999 would have worked as is)

* Port association table no longer exists

* Make database validate again

* DB schema, remove as many DB::statement as possible

* update migrations
add librenms cli entry point (artisan)
update validate to check laravel migrations

* remove statements from users migration

* Fix up daily.sh and the 1000 migration

* Update migrations to current state
Take advantage of environment variables to set DB credentials.

* Fix style issues

* Update schema

* fix test db collation

* Fix migration table definition

* update db migrations

* Update migrations

* Update stats callback.  Just count the total migrations applied.

* Update 1000.sql.

* update migrations

* remove the graph type seeder, it is no longer needed

* update docs

* fix whitespace

* remove extra schema

* update tests

* fix sort

* add message

* dbSchema should actually be 1000

* add character set to db create

* Fix some artisan issues

* Update schema
2019-01-14 06:44:23 -06:00
Alex Typaldos
29f8a8d4a3 Fix victorops recovery alerts (#9651)
* send entity ID as string

VO will not accept an int as an entity ID, this causes issues when issuing recovery alerts as the entity_id is the only way to link incidents.  I have tested this with VO and incidents will alert AND recover.

* change from str() to strval() which is the correct function
2019-01-12 12:51:52 -06:00
Kal42
6fc8173f84 Device: EATON-MGEUPS: Added sensors for temperature and humidity from … (#9647)
* Device: EATON-MGEUPS: Added sensors for temperature and humidity for external environment sensor

* Create eaton-mgeups.json

* Update eaton-mgeups_5px.snmprec

* Rename eaton-mgeups.json to eaton-mgeups_5px.json

* Update eaton-mgeups_5px.snmprec

* Update eaton-mgeups_5px.snmprec

* Update eaton-mgeups_5px.json

* Update eaton-mgeups_5px.json
2019-01-12 07:59:17 -06:00
angryp
0c188c5995 Added Alertmanager transport (#9637)
* Added Alertmanager transport

* Fixed as per comments

* Update Alertmanager.php

* Update Alertmanager.php
2019-01-12 10:42:42 +00:00
Kevin Krumm
c99c97acf3 Added ignore mount point effects macOS (#9652)
added in $config['ignore_mount_regexp'][] = "/^\/Volumes\/OS X Base System/"; 
This should ignore osx recovey caching
2019-01-11 22:56:27 +00:00
Tony Murray
63c85429ae Added support for grouping sensors (#9606)
Improves visual identification for sensors

 - [x] Docs

DO NOT DELETE THIS TEXT

#### Please note

> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.

- [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)

#### Testers

If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
After you are done testing, you can remove the changes with `./scripts/github-remove`.  If there are schema changes, you can ask on discord how to revert.
2019-01-11 22:42:56 +00:00
CFUJoshWeepie
b7591339eb Fix SYNSO-UPSMIB incorrect syntax (#9653)
The SYNSO-UPSMIB had an incorrect import statement that would cause the snmptrapd service to fail/not start with a 'Cannot find module' error.
2019-01-11 16:20:49 -06:00
Swashy
30c325fa4f Reference config options for new beta poller service (#9644) 2019-01-11 12:15:03 -06:00
Tony Murray
d8a751b021
Remove broken routeros signal sensor (#9650)
Discovers 2 of 6 found in the test data then updates it to not match.
Setting the wrong oid.
Tracking two specific macs on a single AP that don't match the label.
If they roam it won't change until next discovery.

If this is wanted, it should be written in the wireless section.
2019-01-11 11:51:23 -06:00
Tony Murray
1b29acc275
Fix sentry3 voltage sensors (#9649)
* Fix sentry3 voltage sensors

* don't need check, fix array to string conversion
2019-01-11 10:54:24 -06:00
Tony Murray
d277dee14d
Fix some issues with sensor limits (#9638)
* Fix Zynos temp warn limit
And others, but this seems to be the only one that uses
remove some odd limit restriction in the poller

* More consistent rounding for sensor limits

* round all numeric limits to 10 digits

* update test data

* Remove complex calculation as negative limit values are already swapped as needed.
2019-01-10 19:48:37 -06:00
jozefrebjak
4c058ae3b4 Added support for Vigintos Modulator & Ampiflier (#9488)
* Create vigintos.yaml

* Add files via upload

* Create VEL-HOST2-MIB

* Create VEL-MIB

* Create vigintos.inc.php

* Create vigintos.inc.php

* Create vigintos.inc.php

* Create vigintos.inc.php

* Create vigintos.inc.php

* Create vigintos.snmprec

* Rename mibs/viginitos/VEL-HOST2-MIB to mibs/vigintos/VEL-MIB

* Delete VEL-MIB

* Rename VEL-MIB to VEL-HOST2-MIB

* Create VEL-MIB

* Delete vigintos.inc.php

* Delete vigintos.inc.php

* Delete vigintos.inc.php

* Delete vigintos.inc.php

* Create vigintos.yaml

* Update vigintos.snmprec

* Update vigintos.yaml

* Create vigintos.json

* Update vigintos.json

* Update vigintos.json
2019-01-10 19:43:00 -06:00
Vitali Kari
a9b156cfcd Device Support for Pegasus (#9641) 2019-01-10 19:40:20 -06:00
Tony Murray
d175950141
topvision - forgot json file (#9640)
Added software version from sysDescr while I was at it
2019-01-10 12:55:21 -06:00
djamp42
38cdf31c8e TopVision CMTS (#9627)
* Add Device TopVision CMTS

* added test data

* Added Upstream Freq & SNR Sensor

* Updated to snmp_getnext_multi

* updated os polling to snmp_getnext
2019-01-10 12:15:45 -06:00
Tony Murray
561e2fb6e2 Increase snmp execution time limit to 10 minutes
This is needed for discovery in some cases (mostly the arp-table module)
2019-01-10 11:18:34 -06:00
Tony Murray
6a00162648
fix constant as string (#9636)
update style and copyright
2019-01-10 06:42:25 -06:00
Tony Murray
daffa7e274
Eventlog updates (#9633)
* Eventlog updates
remove host from eventlog table, retain in api
allow most fields nullable

* updated schema

* revert auth for legacy log_event function
safer check in the model

* add function modifiers
2019-01-10 00:52:00 -06:00
Mike Centola
98f75bd9ce Modify GPSD Application to support SNMP Extend. Update Docs (#9625)
* Modify GPSD Application to support SNMP Extend. Update Docs

* Fixed namespace and removed comments (#9625)
2019-01-09 23:36:37 -06:00
Tony Murray
5620d1bd1b
Allow strings for skip value comparisons (#9635) 2019-01-09 22:20:05 -06:00
Tony Murray
a97ccda0b9
Fix wireless sensor edit messages and collection alert rule (#9624)
* Fix wireless sensor edit messages and collection alert rule

* fix alert rule quotes

* json type
2019-01-09 19:40:27 -06:00
Tony Murray
5cdc49df1b
Hook up librenms cli debug (#9632)
* Hook up librenms cli debug

* forgot to add function exists check, good travis-ci :)
2019-01-09 19:36:32 -06:00
Swashy
8174b9a13c Incorrect reference to non-existent table 'bill_hist'. Corrected to 'bill_history' (#9634) 2019-01-09 19:36:12 -06:00
Tony Murray
05458c006f
Tip on how to install snmpsim (#9628) 2019-01-09 06:29:22 -06:00
Tony Murray
def8b3e514
Add librenms command (#9619)
* Add librenms command

Hook up to artisan.  Hide dev commands and most other commands if app environment is production.
Register all commands for php artisan or when not in production.

* remove dead end line

* Console application name and version.
Had to shift some stuff from legacy code, but deferred others as it was too extensive of a change.

* switch check order

* always get local version now

* update array format

* whitepace

* fix style
2019-01-08 21:42:56 -06:00
Tony Murray
c6e5a3f283
Pressing enter on global search goes to the first result (#9587) 2019-01-08 20:14:15 -06:00
Tony Murray
ef8d7adad0
Remove graph_types definitions from DB (#9618)
* Remove graph_types from DB.

This is silly since defining them in definitions.inc.php already does the same thing.
Adds missing ones in definitions.inc.php and rewrites others since I already wrote them before I realized they were duplicates.

* remove dead table

* Remove graph_types inserts from schema files.

* update db_schema.yaml
2019-01-08 13:46:45 -06:00
Tony Murray
36b4d16404
Fix nios missed space (#9626) 2019-01-08 07:07:34 -06:00
Tony Murray
d303174e7a
fix poller.php with missing -h (#9621) 2019-01-07 21:26:57 -06:00
Tony Murray
5d63fe6647
Fix Infoblox NIOS graphs (#9620)
Broken by recent security update.
2019-01-07 21:26:01 -06:00