Commit Graph

13 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
Tony Murray
9279c845f6 feature: Added wireless sensors to about and stats.librenms.org (#8676) 2018-05-08 21:42:52 +01:00
Tony Murray
51ba934e11 feature: Added web validation (#7474)
* refactor: convert validations to modules to prep for gui integration

* accidentally dropped, schema update

* fix accidental output to webui

* mention discovery-wrapper.py and re-arrange.

* refine some fix statements

* rename the Config validation group to Configuration.

* fix some scrutinizer issues
remove as many local functions from validator.php as possible
move extensions from pre-check
remove duplicate timezone check
looks like there is some db schema differences between mariadb 10.1 and 10.2, investigating

* mariadb version diff take2

* Check schema version first for database.
Remove stop to go back to command line for install docs.
Add helpful link when there is no devices added to /addhost

* fix incorrect validation for empty string defaults

* Fix style

* Add additional file permissions checks

* catch exception and fail for invalid timezone
Change visuals a bit.

* add php version warning

* fix space
2017-10-26 07:56:09 +01:00
Tony Murray
d47b58bf6d newdevice: Changed Solaris and Allied discovery to yaml (#6900)
Add SunOS to callback sanitize
2017-06-28 07:53:25 +01:00
Tony Murray
2f881e3d80 improve callback serial number regex (#6435)
Adds S/N and Serial Num/number
2017-04-16 07:42:22 +01:00
Tony Murray
31dfe62965 fix: do not discover non-existent frequency sensors (#6199) 2017-03-15 09:15:27 +00:00
Tony Murray
6ecb3acc51 Improve stats data scrubbing (#6041)
Include Darwin (OSX) in the Linux hostname scrubbing, add underscores too.
Way more generic serial number replacement.  Preserves the format of the serial number, but removes the data.
2017-03-01 10:23:38 +00:00
Tony Murray
b06153d7e9 feature: collect sysDescr and sysObjectID for stats to improve os detection (#5510) 2017-01-30 17:45:22 +00:00
Tony Murray
370e368ffe fix: msyql errors bgp-peers, daily, callback (#5425)
* fix: msyql errors bgp-peers, daily, callback

* select cell instead of an row
2017-01-13 22:21:29 +00:00
Neil Lathwood
047c96d454 add php, net-snmp and rrdtool versions to callback stats (#5153) 2016-12-12 13:03:54 -06:00
Tony Murray
9284bc60ff Update code in includes to be PSR-2 compliant (#4220)
refactor: Update code in /includes to be psr2 compliant #4220
2016-08-28 18:32:58 +01:00
laf
2a2c32787a Fixed silly sql build for vminfo table 2016-01-24 23:36:38 +00:00
laf
a45259377b Added local rss file + tidied up locations of notifications and callback 2016-01-19 21:50:00 +00:00