Commit Graph

13550 Commits

Author SHA1 Message Date
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 2b89f9edb5.

* 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
Neil Lathwood
a6391ed3e8 fix: Update applications poller to use numeric oid instead of nsExtendOutputFull (#6277)
* fix: Update applications poller to use numeric oid instead of nsExtendOutputFull

* Accidental m
2017-03-30 22:01:40 -05:00
Neil Lathwood
90be6d1f68 feature: Added cisco-vpdn to poller modules (#6300) 2017-03-30 22:13:36 +01:00
sorano
681b8ba9aa docs: Update install docs to remove deprecated GRANT usage 2017-03-30 22:12:51 +01:00
Tony Murray
890350e457 feature: support powerdns-recursor SNMP extend (#6290)
Update direct API access to support version 4
Documentation cleanups
2017-03-30 22:11:50 +01:00
Neil Lathwood
63533666c9 Revert "Add missing datasources for postfix app" (#6310)
* Revert "use components for fail2ban jails list (#6221)"

This reverts commit acd11955d2.

* Revert "fix: Add missing datasources for postfix app (#6173)"

This reverts commit 3ac4e3c8d5.
2017-03-30 17:04:39 +01:00
VVelox
acd11955d2 use components for fail2ban jails list (#6221)
* add get_fail2ban_jails functions

* now do component stuff for fail2ban for tracking jails

* now use get_fail2ban_jails for getting a list of jails

* readd the accidentally deleted update app bit

* white space cleanup

* Update fail2ban component code

* remove unneeded variable
2017-03-29 22:54:02 -05:00
Florian Beer
3ac4e3c8d5 fix: Add missing datasources for postfix app (#6173)
* Add missing datasources for postfix app

* Re-order data
2017-03-29 22:59:59 +01:00
Neil Lathwood
cf509f138b fix: Fixed the dbTest units so they work (#6293)
* fix: Fixed the dbTest units so they work

* fix schema, should now pass
2017-03-29 16:13:30 -05:00
Neil Lathwood
962c47168c fix: Corrected url in telegram alert transport (#6299) 2017-03-29 16:09:01 -05:00
Neil Lathwood
90e2c74209 fix: Fixed F5 ports not using hc counters (#6294) 2017-03-29 16:43:09 +01:00
Aldemir Akpinar
2dd0ab870f Do not show unintended debug messages (#6296)
* Do not show unintended debug messages

* Fix the silly mistake
2017-03-29 14:35:44 +01:00
Tony Murray
1ea7af424b feature: bind user for active_directory auth (#6255)
* feature: bind user for active_directory auth
Optional, allows the use of "remember me", API, and alerting.

* missing global (but still may not be working)

* always return a value from reauthenticate()

* Make sure the ldapbind credentials are correct on reauth.
Do not send output if they are incorrect (use d_echo) this breaks ajax calls, etc.
Add scripts/auth_test.php, to make it easier to debug authentication.

* Refine auth_test.php a bit more
A few small cleanups in other places of the auth

* Add auth_test.php to docs
Some more improvements in the auth_test.php output.

* Update Authentication.md
2017-03-29 08:22:02 -05:00
Tony Murray
5d2aa30153 Update Poller-Service.md (#6291) 2017-03-28 22:14:57 +01:00