13713 Commits

Author SHA1 Message Date
Aldemir Akpinar
cea6169cd6 newdevice: Change Cisco UCM category from tele to collaboration (#6297)
* Change Cisco UCM category from tele to telephony

* Added telephony definitions

* Changed the category to collaboration as agreed
2017-04-12 14:14:22 -05:00
barryodonovan
66baea1c48 change rrd_options on airfibre-rx-graph (#6399) 2017-04-12 13:36:18 -05:00
Lorenzo Zafra
c22283e218 newdevice: Added signal sensor for opengear devices (#6401) 2017-04-12 13:35:55 -05:00
Xavier Beaudouin
0997ebaa10 Fix #6187 with some missing definitions. (#6403)
* Fix the definition. Should be mef instead of mef-evc

* Added Coriant TNMS Hardware page.

* Polling and discovery modules for TNMS Network Equipements.

* SQL in one line.

* Only show when OS is coriant

* Fix conflict file

* Conflict file

* Added missing COLLATE

* Refactor poller code for more data to be inserted into DB in the future.
Removed the discovery module and merged it into poller code.

* Removed tnms-nbi discovery also in the yaml

* Removing debug

* Code updates and fixes + schema rename

* bootstrapify the code.
Renamed the sql file

* Bloody tabs !

* Fix missing information for the TNMS #6187
2017-04-12 13:26:12 -05:00
VVelox
c222aa41a0 add multi DB support to the Postgres app (#6222)
* now creates a component with all the DBs in it

* add the function get_postgres_databases

* add multi DB support to the Postgres device app page

* add multi DB support to the Postgres graphs

* whoops removed the udpate bit, readd it

* white space cleanup

* now use json for storing DB names

* provide the list of DBs in a cleaner manner

* Update postgres.inc.php
2017-04-12 10:45:12 +01:00
Xavier Beaudouin
4b0972628f Coriant Network Hardware Page. (#6187)
* Fix the definition. Should be mef instead of mef-evc

* Added Coriant TNMS Hardware page.

* Polling and discovery modules for TNMS Network Equipements.

* SQL in one line.

* Only show when OS is coriant

* Fix conflict file

* Conflict file

* Added missing COLLATE

* Refactor poller code for more data to be inserted into DB in the future.
Removed the discovery module and merged it into poller code.

* Removed tnms-nbi discovery also in the yaml

* Removing debug

* Code updates and fixes + schema rename

* bootstrapify the code.
Renamed the sql file

* Bloody tabs !

* Add db_schema.yaml update.
2017-04-12 10:39:02 +01:00
Neil Lathwood
069020cb80 updated rrdtool ver check to wrap quotes around (#6393) 2017-04-11 07:04:25 +01:00
Neil Lathwood
5ce9b6b2e8 feature: Added rrdtool version check to compare installed version with defined version (#6381)
* feature: Added rrdtool version check to compare installed version with defined version

* update to check config is not > than installed ver
2017-04-10 08:11:56 -05:00
deepseth
788e5fd75c webui: Include ifAlias (port description) in graph title (#6373)
* Include ifAlias (port description) in graph title

* Resolve duplication where ifAlias == ifDescr

* Revert change to use label back to using ifDescr
2017-04-08 11:14:12 -05:00
Tony Murray
c35b5b36f3 newdevice: Basic Ciena (Cyan) Z-Series detection (#6385)
issue: #6337
2017-04-08 07:14:41 +01:00
Neil Lathwood
0190691061 newdevice: Added sensors + additional info for HPE iPDU (#6382)
* newdevice: Added sensors + additional info for HPE iPDU

* added trim
2017-04-07 22:19:38 -05:00
Tony Murray
4ab358501d api: API allow cidr network searches of the ARP table (#6378)
* api: API allow cidr network searches of the ARP table

* Allow non-encoded / in request
I also noticed that all is allowed to be called without device, which the sql query does not support.
2017-04-07 21:05:46 +01:00
Tony Murray
b1483e3d2e feature: Unit test to validate the db schema (#6367)
* Unit test to validate the db schema
Changes build-schema.php to just write misc/db_schema.yaml

* Only build base if needed
Fix 178.sql

* Database is always created by init.php
add dbSchema test too, should guard against testing against an empty database

* feature: support non-standard unix socket (#5724)

* Add support for custom MySQL unix-socket

* NULL must be lowercase!

* Naive edit of html/install.php

* fixup

* Refactor dbConnect
Use it everywhere

* $config needs to be global
Don't need to set $database_link

* small cleanups

* Connect to the database for every test.

* travis fix for blank line
2017-04-07 15:07:44 +01:00
Tony Murray
b1a414e785 feature: support non-standard unix socket (#5724)
* Add support for custom MySQL unix-socket

* NULL must be lowercase!

* Naive edit of html/install.php

* fixup

* Refactor dbConnect
Use it everywhere

* $config needs to be global
Don't need to set $database_link

* small cleanups
2017-04-06 22:02:37 +01:00
Neil Lathwood
66d9d54f73 renamed baracuda.svg -> barracuda.svg (#6375) 2017-04-06 21:39:02 +01:00
Lorenzo Zafra
5b32f71434 newdevice: Added support for Teradici PCoIP card (#6347)
* Added device discoery for Teradici PCoIP card

* Removed redundant arguments from snmp_get and comments in os definition

* Added 'workstations' as a device type
2017-04-06 20:38:12 +01:00
Neil Lathwood
61bb58b106 newdevice: Added detection fro Juniper MSS (#6335)
* newdevice: Added detection fro Juniper MSS

* update sysObjectId check
2017-04-06 18:19:25 +01:00
Chris Putnam
02017068e7 Fix redirect on login for instances behind reverse proxies (#6371)
* Fix redirect on login for instances

On instances where base_url has been set for use behind a reverse proxy, logins are incorrectly redirected.

This happens because REQUEST_URI is set by the proxy:
  1. librenms has base_url set to http://site.com/nms/
  2. Browser requests http://site.com/nms/
  3. nginx reverse proxies /nms/ to librenms at http://somehost:1234/
  4. librenms sees REQUEST_URI as "/"
  5. librenms logs the user in, but sends "Location: /" to the browser. This redirects to the wrong location.

To resolve, concatenate REQUEST_URI (which is relative) to base_url. As base_url is slash-terminated, crop the trailing slash. This should have no effect on users with default settings and will correctly redirect instances behind reverse proxies.

* I agree to the conditions of the Contributor Agreement contained in doc/General/Contributing.md.

* Adding comment explaining redirect logic on login

* Use rtrim instead of substr
2017-04-06 09:11:39 +00:00
Lorenzo Zafra
699e99e795 newdevice: Updated OS Polling for Opengear ACM7008 (#6349)
* Add OS Polling for Opengear ACM7008

* Fixed OSDiscoveryTest.php whitespaces

* Removed 'v' from OS version polling
2017-04-05 22:48:05 +01:00
Tony Murray
c51fd769c3 docs Move ad bind user to the right section (#6368) 2017-04-05 13:15:51 -05:00
Tony Murray
907a601c1d Fix an issue with table creation (named indexes merged) (#6366) 2017-04-05 11:19:22 -05:00
Tony Murray
0fd0b7cd6c Include the index name so the manual sql fix validates. (#6365) 2017-04-05 10:20:14 -05:00
Daniel Preussker
2076e3655f Revert #6282 as it breaks graph widgets (#6361) 2017-04-05 16:14:21 +01:00
Neil Lathwood
da68e50c00 refactor: Update some snmpwalks for ports polling to improve speed (#6341) 2017-04-05 16:13:57 +01:00
Neil Lathwood
e583fb8c46 updated schema build user (#6363) 2017-04-05 15:24:00 +01:00
Tony Murray
55162129ff Update schema manually (#6362)
Allow build-schema.php to be run by hand more easily.
2017-04-05 09:06:11 -05:00
Neil Lathwood
6a73e725af updated schema build user (#6360) 2017-04-05 14:18:30 +01:00
Neil Lathwood
b321844f11 Deploy schema (#6359)
* updated username

* updated username

* updated username

* updated username

* updated username

* small update
2017-04-05 12:35:50 +01:00
Neil Lathwood
b4488e84a1 Deploy schema (#6358)
* updated username

* updated username

* updated username

* updated username

* updated username
2017-04-05 12:10:38 +01:00
Neil Lathwood
284bb19b2e Deploy schema (#6357)
* updated username

* updated username

* updated username

* updated username
2017-04-05 11:47:32 +01:00
Neil Lathwood
d8b651f736 Deploy schema (#6356)
* updated username

* updated username

* updated username
2017-04-05 11:21:09 +01:00
Neil Lathwood
2c3599d3e5 Deploy schema (#6354)
* updated username

* updated username
2017-04-05 10:56:18 +01:00
Neil Lathwood
c6a51adb44 updated username (#6352) 2017-04-05 10:32:36 +01:00
Neil Lathwood
03deb6434a feature: Added ability to validate database schema (#6303)
* feature: Added ability to validate database schema

* small scrut fixes

* Check for extra tables and columns
Print 30 items of schema updates, easier to copy paste sql

* Now supports detections and suggested fix for:
tables: missing, extra
columns: missing, extra, incorrect
indexes: missing, extra, incorrect

* final changes + hook into travis
2017-04-05 09:00:28 +01:00
Simon Mott
18784fdb89 webui: Updated rrdtool command output to use <pre>(#6345)
* fix whitespace display on RRDTool Command

* use a class instead
2017-04-05 07:54:55 +01:00
Lorenzo Zafra
f85f8c1e13 newdevice: Add support for Nokia (Alcatel-Lucent) SAS-Sx 7210. Add TiMos version and hardware. (#6344)
* I agree to the conditions of the Contributor Agreement contained in doc/General/Contributing.md.

* Add support for Nokia SAS-Sx 7210

* Revert "I agree to the conditions of the Contributor Agreement contained in doc/General/Contributing.md."

This reverts commit 2b89f9edb53dc493201102e9dd00db3a911ffc01.

* Edited hardware regex to cover more sample data
2017-04-04 14:35:39 -05:00
Neil Lathwood
8a2f103144 fix: Moved dnos health disco to powerconnect (#6331) 2017-04-04 13:03:44 -05:00
Lorenzo Zafra
9b62ea2cbf newdevice: Added basic support for Omnitron iConverters (#6336)
* Added basic support for Omnitron iConverters

* Fixed discovery issue & cropped logo
2017-04-04 13:02:50 -05:00
Lorenzo Zafra
7d656ac4c4 newdevice: Add logo for Sinetica UPS (Mitsubishi) (#6340)
* I agree to the conditions of the Contributor Agreement contained in doc/General/Contributing.md.

* Add mitsubishi logo for Sinetica UPS

* Update to SVG logos
2017-04-04 13:01:43 -05:00
Tony Murray
4cdc406a4f Merge pull request #6343 from EnzoZafra/master
I agree to the conditions of the Contributor Agreement contained in doc/General/Contributing.md.
2017-04-04 12:22:34 -05:00
Tony Murray
dd91484716 fix: Select the correct dashboard when there are no defaults. (#6339) 2017-04-04 17:55:18 +01:00
Lorenzo Zafra
99fbe7774d Merge branch 'master' of https://github.com/librenms/librenms 2017-04-04 10:34:40 -06:00
Neil Lathwood
1bbbaff58b refactor: Moved ifLabel -> cleanPort and updated the usage (#6288)
* refactor: Moved ifLabel -> cleanPort and updated the usage

* added list of tags allowed

* few updates as per comments from @murrant

* Added simple unit tests

* double display for javascript popover

* Remove ifNameDescr() function
Fix realtime port page

* remove accidental temp code

* Remove double display calls in ajax tables
2017-04-04 08:08:23 +01:00
Neil Lathwood
b1c2ea2194 newdevice: Added HPE iPDU detection (#6334) 2017-04-03 20:02:43 -05:00
Lorenzo Zafra
2b89f9edb5 I agree to the conditions of the Contributor Agreement contained in doc/General/Contributing.md. 2017-04-03 14:01:14 -06:00
Neil Lathwood
a0abcbb649 fix: Fix broken mysql application polling (#6317) 2017-04-01 22:22:04 +01:00
Tony Murray
4b9f3f37d7 fix: move user preferences dashboard and twofactor out of users table (#6286)
* fix: move user preferences dashboard and twofactor out of users table
This allows them to work with any authentication method
Add set_user_pref() and get_user_pref() helper functions

* fix edit users for other users

* Fix updated_at default timestamp

* Update and rename 183.sql to 184.sql

* removed commented out debug
2017-04-01 22:18:00 +01:00
Neil Lathwood
98e8e7e407 fix: Compare existing device ip to host lookup like for like (#6316) 2017-04-01 22:17:32 +01:00
Neil Lathwood
ae73109159 fix: Fixed CPU/Mem polling for Cyberoam-UTM devices (#6315) 2017-04-01 22:17:08 +01:00
FTBZ
8f0f1ba8b9 newdevice: Add support for AvediaStream Encoder (#6306)
* newdevice: Add support for AvediaStream Encoder

* Add missing tests

* Tests ok, submit away :)
2017-03-31 12:21:41 +01:00