* Where shebangs had no flags, updated them to use /usr/bin/env for cross-platform compatibility
Updated daily.sh to support FreeBSD (su has different args, replaced with sudo when not on linux)
* Added myself to AUTHORD.md as per contributor guidelines
* Set all platforms to use sudo rather than su
Re-added missing arguments to sudo
PPC_LINUX_IOSD or X86_64_LINUX_IOSD means IOS-XE, Drop the X86_64_ as that gives us full coverage.
Drop IOS-XE usage for detection. Allows us to migrate ios detection to yaml.
* fix: Allow unit tests without a sql server
* Fix db connection in bootstrap.php
Mark tests as skipped
Make sure the sql queries in bootstrap.php have run
* I agree to the conditions of the Contributor Agreement contained in doc/General/Contributing.md.
* Poll device for optic lane info
* Add discovery for multiple lanes per optic
* Update formatting
* Update AUTHORS.md
* newdevice: improve comware detection
Only some H3C Comware devices were detected as comware, detect them all.
* Update the test data
FYI, C1234 was just a nonsense string
* fix: AD authentication when auth_ad_base_dn is an OU
OUs don't have SID, so we can't use them to figure out the domain SID
* Only match leading OUs
* Actually, might be best to remove everything except the domain components.
* New Device Support for ICT DC Distribution Panels
* Fixed indexes, removed tests
* Supply name instead of oid to snmp_get call
* Fixed index conflict for current sensors
* 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
* 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
* 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.
* 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.
* 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
* 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
* Added device discoery for Teradici PCoIP card
* Removed redundant arguments from snmp_get and comments in os definition
* Added 'workstations' as a device type
* 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