Commit Graph

15887 Commits

Author SHA1 Message Date
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
TheGreatDoc
189bca40cf
Merge pull request #9623 from tim427/master
Fixed typo in globe widget
2019-01-07 19:59:16 +01:00
Tim de Boer
d333d2f29e Fixed typo in globe widget 2019-01-07 16:56:47 +01:00
Franck Zoccolo
114b3b36fe Update GraylogApi.php (#9617)
Fix the following exception, occurring when device known IP address is different than the one returned by gethostbyname() function call.

production.ERROR: ErrorException: Array to string conversion in /opt/librenms/app/ApiClients/GraylogApi.php:128
2019-01-06 20:51:26 -06:00
Tony Murray
830429ee03 Fixed .gitingore "changed" files with github-remove script (#9616)
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-06 15:36:04 +00:00
twelch24
506f48d3fe Crossbar fix on Cisco 6500/7600 devices (#9588)
* c6k crossbar intial commit

* removed debug..

* style fixes

* more style fixes

* more style fixes

* cc fix
2019-01-05 13:34:53 -06:00
Tony Murray
ae29d43af0 Sort device select by hostname (#9607)
Plus small format fix for horizontal device summary widget.

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-05 15:31:12 +00:00
Tony Murray
b3bb742bd8
Database consistency pass (#9612)
* Database consistency pass
Change ids to unsigned ints
Also change int timestamp fields to unsigned to fix the Y2038 BUG :D

* reduce the amount of queries and hopefully temporary tables

* oopsie
2019-01-05 09:28:31 -06:00
KodApa85
02855fa9c8 ZyXEL Telemetry - XGS4600-32F (#9599)
* ZyXEL XGS4600-32F
- Added mib for diagnostics
    - CPU/Mem
    - Temp/Fan/Voltage
- Updated zyxel group mempools
- Updated test data
    - snmprec
    - json
- Altered ZyWall
    - To exclude XGS switches

* Defined ZYXEL-HW-MONITOR-MIB at the top of file

* Removed .MIB
2019-01-04 10:17:00 -06:00
Tony Murray
f10cbddacc Refactored Alert schedule (#9514)
* add AlertSchedule model and relationships
change table structure to match the expected layout

* Update maint schedule map ui

* better index name

* Laravel queries
fix some issues with the ui: restricting start incorrectly and loading empty days error

* handle date limiting properly

* Another attempt add schedule constraints

* use Auth

* Update WorldMap widget to use check isUnderMaintenance

* Rename 275.sql to 276.sql

* Rename 276.sql to 277.sql
2019-01-03 22:42:12 +00:00
Tony Murray
0cc599c576
Fix airos tests (#9611) 2019-01-03 12:35:53 -06:00
Tony Murray
fdf23631bd Fixed orphaned dashboards (#9590)
Delete empty dashboards without an owner
Chown dashboards that have widgets to the first admin level user

fixes: #9580 

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-01 13:03:28 +00:00
Neil Lathwood
15c4e8499f
Removed Legacy Transport UI https://t.libren.ms/deprecation-alerting (#9552) 2019-01-01 12:57:09 +00:00
Neil Lathwood
c4cdb5839e
Merge pull request #9602 from librenms/murrant-patch-1 2018-12-31 21:43:32 +00:00
Tony Murray
eff1544b42
Suggest -d in discovery.php to clear cache 2018-12-31 11:07:43 -06:00
TheGreatDoc
cc85c21225
Merge pull request #9601 from librenms/laf-patch-1
Updated virtual images doc to use latest URL
2018-12-30 23:40:05 +01:00
Neil Lathwood
3155b56501
Updated virtual images doc to use latest URL 2018-12-30 21:38:41 +00:00
Neil Lathwood
03d6d76908
Added changelog for 1.47 release (#9600) 2018-12-30 14:29:16 +00:00
Tony Murray
97a94f3449
Fix customers page to only show customer type ports (#9598) 2018-12-28 21:17:28 -06:00
Tony Murray
3dce7aa90c
AirFiber additional modulation rates, fix gpsSync (#9563)
* Add QAM1024 modulation for AirFiber
Move sensors to yaml

* Fix 0 index

* add additional data
make compatible with old sensors

* Fix whitespace
2018-12-28 20:11:24 -06:00
VVelox
fd573bc879 json-app-tool fix (#9593)
* add insert the metrics stuff into the right place now

* properly exit now when -l is given or -k, -m or -s is not given

* Update json-app-tool.php
2018-12-28 20:11:04 -06:00