Commit Graph

4749 Commits

Author SHA1 Message Date
Tony Murray
c35b5b36f3 newdevice: Basic Ciena (Cyan) Z-Series detection (#6385)
issue: #6337
2017-04-08 07:14:41 +01: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
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
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
Daniel Preussker
2076e3655f Revert #6282 as it breaks graph widgets (#6361) 2017-04-05 16:14:21 +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
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
dd91484716 fix: Select the correct dashboard when there are no defaults. (#6339) 2017-04-04 17:55:18 +01: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
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
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
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
deepseth
0e0dc0743e webui: Update poller_modules_perf to not show OS disabled module graphs (#6276) 2017-03-28 16:13:31 +01:00
Jan-Philipp Litza
323df86d40 fix: Fixed height of widget boxes (#6282)
* Fix height of widget boxes

This pracitcally reverts #5644 and instead applies the correct fix by
calculating the dimensions of the widget box correctly.

* I agree to the conditions of the Contributor Agreement contained in doc/General/Contributing.md.
2017-03-28 16:02:10 +01:00
Ryan Medlyn
3712ca91fe Localizes alerts_grid variable to fix errors with multiple alerts tables (#6285) 2017-03-28 16:00:09 +01:00
Neil Lathwood
4404fed297 refactor: Changed MGE UPS to APC UPS (mgeups -> apc) (#6260)
* refactor: Changed MGE UPS to APC UPS (mgeups -> apc)

* Updated APC logo

* removed width/height

* Fixup SVG
2017-03-26 13:19:55 -05:00
Neil Lathwood
04beee6e22 webui: Do not show disabled devices in alerts list as they stale #6213 (#6263) 2017-03-24 17:06:09 -05:00
barryodonovan
8404eef42e newdevice: Added Rx levels on Ubiquiti Airfibre (#6160)
* poll and graph Rx levels

* some final(?) changes
2017-03-24 20:54:11 +00:00
Neil Lathwood
a4be2a4892 fix: Set the from / to for graphs in the devices list #6262 (#6264) 2017-03-23 21:09:55 -05:00
InfraTeam
bc14b9137e newdevice: Added detection for Hirschmann Railswitch #6161 (#6207)
* Added detection for Hirschmann Railswitch

* Update AUTHORS.md

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

* Fixes for PR 6207 requested changes

* Fixes for PR 6207 requested changes

* Fixes for PR 6207 requested changes

* Fix for PR 6207 requested changes

* Fix for PR 6207 requested changes

* Fix for PR 6207 requested changes (old states and temperatures directories removal)

* fix for PR 6207 : state fileupdated
2017-03-23 14:36:25 -05:00
Tony Murray
4a705ea7e3 Fix vertical alingment of the main navbar. (#6256) 2017-03-23 16:22:50 +00:00
pblasquez
c2cdf14223 feature: Added syslog alert transport (#6246)
* Add syslog alert transport and docs

* Remove redundant priority variable

* Log syslog transport events as critical
2017-03-23 08:46:28 +00:00
Simon Mott
d8d0bb3d5b fix: Remove min value for ntp* graphs #6240 2017-03-22 22:13:20 +00:00
Tony Murray
ebabd35d00 accidentally made nav tabs wider (#6236) 2017-03-22 15:41:44 +00:00
Tony Murray
e7057ecea5 feature: Application auto discovery (#6143) 2017-03-22 14:59:39 +00:00
VVelox
0a4b2658b5 feature: Added SMART application support (#6181) 2017-03-22 14:28:50 +00:00
Neil Lathwood
5f5dc2a854 feature: Peeringdb integration to show the Exchanges and peers for your AS' (#6178) 2017-03-22 10:17:13 +00:00
Neil Lathwood
f6d8859bb4 feature: Added support for sending alerts to Telegram #2114 (#6202) 2017-03-22 09:02:24 +00:00
Tony Murray
fdc730e638 webui: improve the text alignment for tab bars (#6229)
* webui: improve the text alignment for tab bars
Margin tweaks no longer needed since we use font awesome icons everywhere
Add role presentation for improved accessibility
Clean up some of the permissions logic on the device page (tested)

* fix style
2017-03-22 08:06:46 +00:00
Tony Murray
31b1c75353 fix: do not show overview graphs when user only has port permissions for device (#6230)
(were broken links before)
2017-03-22 08:04:50 +00:00
Neil Lathwood
73a9092c82 fix: Display username in eventlog + allow for searching #6200 (#6205) 2017-03-16 09:20:28 -05:00
towster
605b9d2092 feature: Send default mail when no email destinations found (#6165)
* when an email is attempted to be sent but there are no recipients send to default_mail address
2017-03-14 23:22:43 +00:00
Neil Lathwood
cca6cbb1af fix: Stop autorefresh on bill edit page #6182 (#6193) 2017-03-14 09:37:14 -05:00
Neil Lathwood
c2ce20e3c0 fix: graphs $auth check was too strict (#6195)
* graphs $auth bool check was too strict

* Remove extra verbage
2017-03-14 09:36:27 -05:00
Neil Lathwood
c4ca5023a7 fixed auth when proxy is involved #6183 (#6192) 2017-03-14 08:04:47 +00:00
markabrahams
54deb1d429 fix: API call for graphs not working (#6184) (#6186)
* fix: API call for graphs not working (#6184)

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

* updated set_image_type to use new function
2017-03-13 16:39:43 +00:00
Neil Lathwood
014682b60b api: Added new route for multiport bit graphs + asn list_bgp filter (#6129)
* api: Added new route for multiport bit graphs + asn list_bgp filter

* fixed scrut errors
2017-03-12 21:17:09 -05:00
Tony Murray
4ae4847a60 fix: Change rfc1628 'state' (est. runtime and on battery) to runtime (#6158)
* fix: Change rfc1628 'state' (est. runtime and on battery) to runtime

* Fix up the graph error ( : in ds name).
Change seconds on battery to minutes so the value is in minutes

* wrong scale for limits

* Don't use snmp_walk
2017-03-12 21:44:24 +00:00
Tony Murray
58495a3910 Add php docs for log_event, small cleanups (#6141)
* Add php docs for log_event, clean up eventlog_severity a bit.

* Update functions.php
2017-03-12 13:05:31 +00:00
Neil Lathwood
e2962adac8 fix: Updated http-auth to work with nginx http auth #6102 (#6174) 2017-03-12 07:54:59 -05:00
Tony Murray
6993bd122c fix: sensors not being removed from database (#6169) 2017-03-12 00:03:04 +00:00
Neil Lathwood
fe130ea278 fix: Fix the displaying of alert info for historical alerts #6092 (#6107) 2017-03-11 23:21:30 +00:00
Neil Lathwood
38cebc5fd7 feature: Added better BGP support for Arista (#6046)
* feature: Added better BGP support for Arista
2017-03-11 23:16:49 +00:00
Neil Lathwood
107ad9cc1f fix: Update api-access page to use get_userlist() #6063 (#6082)
* fix: Update api-access page to use get_userlist() #6063

* updated token list

* updated to use on db call
2017-03-11 23:06:55 +00:00