46 Commits

Author SHA1 Message Date
Tony Murray 32a7c50189 Use Laravel authentication (#8702)
* Use Laravel for authentication
Support legacy auth methods
Always create DB entry for users (segregate by auth method)

Port api auth to Laravel

restrict poller errors to devices the user has access to

Run checks on every page load.  But set a 5 minute (configurable) timer.
Only run some checks if the user is an admin

Move toastr down a few pixels so it isn't as annoying.

Fix menu not loaded on laravel pages when twofactor is enabled for the system, but disabled for the user.
Add two missing menu entries in the laravel menu

Rewrite 2FA code
Simplify some and verify code before applying

Get http-auth working
Handle legacy $_SESSION differently.  Allows Auth::once(), etc to work.

* Fix tests and mysqli extension check

* remove duplicate Toastr messages

* Fix new items

* Rename 266.sql to 267.sql
2018-09-11 07:51:35 -05:00
Tony Murray 7250376104 refactor: Don't access $_SESSION directly for Auth (#8513)
* Don't access $_SESSION directly for Auth

* fix style

* add property annotations
2018-04-07 21:55:28 +01:00
crcro bfcc15aaa8 webui: fix services display (#7993)
* fixed display bug when only one host had services

* small cleanup, renamed vars as laf change request

* message display wrongly removed, integrated back

* missed one changed line by #8030
2018-02-07 21:20:27 -06:00
Tony Murray 9b392041f4 bug: Fixed deletion of services + select query (#8030)
GROUP BY was missing a field, causing the page to not populate
Rows were missing their ID, causing them to stay there when deleted.
2018-01-05 21:34:00 +00:00
crcro f75079ab47 fix alignment, removed redunant css classes, align layout with the rest (#7954) 2017-12-24 22:46:12 +00:00
Søren Rosiak d11808aad4 webui: Improve Services Page Look (#7628) 2017-12-24 19:41:14 +00:00
algebur 62cde819a0 webui: Added "system name" for the "Services list" (#6873)
* Update devices.inc.php

* Update devices.inc.php

* Add "system name" to "hostname"

It is easy to watch hosts using system names and IP addresses

* Deleted -H for checking srevice

How wrote this code? 
I could not use additional plugins, because system adds "-H" when plugin runs. But some plugins don't use "-H"

* changed to original file

* Update services.inc.php
2017-06-23 22:17:01 +01:00
Florian Beer ad58af6e6c webui: Update services pages
* Update services page

- Bring services overview page in line with the rest of the interface
using bootstrap classes, panels, colors etc.
- Getting rid of most of the tables using bootstrap's grid classes.

Device services page might need a bit more work but I'm not ready yet.

* Fix style check issues

* Bigger status labels
2017-02-22 23:53:17 +00:00
FTBZ fa49422ec6 webui: Remove the non-functional buttons for non-admins in services (#5833) 2017-02-08 22:02:53 +00:00
Neil Lathwood 1e655c4e03 fix services mysql query to get distinct devices (#5344) 2017-01-08 09:33:33 +00:00
Neil Lathwood da5783d917 feature: Add mysql failed query logging + fixed queries that break ONLY_FULL_GROUP_BY (#5327)
* feature: Add mysql failed query logging + fixed queries that break ONLY_FULL_GROUP_BY

* fix all schema errors and update system
2017-01-07 11:32:38 -06:00
jonathon-k a251e81be5 fix: Remove escape characters for services form / display #4891 2016-11-01 17:20:12 +00:00
Bennett Blodinger 07574b27d8 Move to Font Awesome
Keeps the look more in line with the navigation bar icons.
In the future with Bootstrap 4, Glyphicons will not be included, so this
starts the transistions away.
2016-09-22 10:44:17 -04:00
Tony Murray 8c639aa5a4 PSR2 Cleanup: /html edition
Travis tests for code conformance. Ignore warnings for now.
Fixed all errors, left most warnings.
2016-08-18 21:29:30 -05:00
laf f3ee9dcc2e Fixed php short tags 2016-05-02 18:43:06 +00:00
Daniel Preussker 975ddbc517 Revert "Fixed php short tags :/" 2016-05-02 20:19:18 +02:00
laf a14ae0bc18 Fixed php short tags :/ 2016-05-02 18:09:58 +00:00
Aaron Daniels eeb3dff393 - Use Nagios alerting: 0 = Ok, 1 = Warning, 2 = Critical
- Update documentation
- Moved SQL for upstream changes
2016-03-29 20:15:42 +10:00
Aaron Daniels 854812a457 - added rrd_pipes to check script
- renamed service_* to *_service
2016-03-22 16:40:51 +10:00
Aaron Daniels 0d6cfec589 Nagios Services
- Moved check-services.php to a poller module
    - Added performance data collection to the poller
    - Centralised DB functions to includes/services.inc.php
    - Created add/edit/delete functions off the device, services page
    - Removed legacy edit/delete interfaces.
    - Moved and modified check.inc scripts
    - Documentation Updates
    - Modified services table
2016-03-15 22:23:14 +10:00
f0o dcbe31fe6b Added last-check on services 2016-02-22 08:38:51 +00:00
vitalisator 3d06a07994 add service description 2015-12-28 09:18:12 +01:00
laf d39f1d71a6 Few small changes 2015-11-04 19:23:39 +00:00
laf 22e4055167 Removed broken graphs and tidied table up 2015-10-26 22:09:22 +00:00
laf 222191382d Fixed services -> Alerts menu link + page 2015-10-17 18:13:11 +00:00
Clint Armstrong b5e8998c70 apply lazyload patch 2015-07-16 12:42:58 -04:00
Job Snijders d8693f05ae Fix coding style part 2 2015-07-15 11:04:22 +02:00
Mike Rostermund 0bd6a9736e Only unshift first time. 2015-06-02 13:55:53 +02:00
laf fc7404a3c4 Updates bringing forms / tables inline with Bootstrap v3, also adds Global search box 2014-01-13 10:08:59 +00:00
Tom Laermans 8df2b9b3f5 remove legacy variables, hopefully i didn't mess anything up
git-svn-id: http://www.observium.org/svn/observer/trunk@3134 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-06 18:38:11 +00:00
Tom Laermans 613e8b1e29 syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@3117 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-02 22:02:30 +00:00
Adam Amstrong 77d055f9d6 fix services stuff
git-svn-id: http://www.observium.org/svn/observer/trunk@3090 61d68cd4-352d-0410-923a-c4978735b2b8
2012-04-26 13:05:52 +00:00
Tom Laermans 2667649d3c syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@2970 61d68cd4-352d-0410-923a-c4978735b2b8
2012-04-06 13:56:23 +00:00
Tom Laermans a0a1939995 more title sets
git-svn-id: http://www.observium.org/svn/observer/trunk@2691 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-18 14:41:19 +00:00
Tom Laermans d864ce234f kill a whole bunch of trailing spaces
git-svn-id: http://www.observium.org/svn/observer/trunk@2516 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-20 09:55:11 +00:00
Tom Laermans ab8471158c remove more base_url
git-svn-id: http://www.observium.org/svn/observer/trunk@2490 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-17 19:07:42 +00:00
Adam Amstrong e9f14f8f85 many lovely GUI changes.
git-svn-id: http://www.observium.org/svn/observer/trunk@2454 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-14 13:38:01 +00:00
Adam Amstrong 7e16919426 more db
git-svn-id: http://www.observium.org/svn/observer/trunk@2317 61d68cd4-352d-0410-923a-c4978735b2b8
2011-05-14 21:51:58 +00:00
Adam Amstrong a6a09b31b9 cosmetic changes to search. add starter to optionbar for health/search/services and fix routing link on menubar
git-svn-id: http://www.observium.org/svn/observer/trunk@2207 61d68cd4-352d-0410-923a-c4978735b2b8
2011-04-29 23:09:35 +00:00
Tom Laermans 9de8c08a65 remove REQUEST_URI from everywhere
git-svn-id: http://www.observium.org/svn/observer/trunk@2143 61d68cd4-352d-0410-923a-c4978735b2b8
2011-04-22 21:01:39 +00:00
Adam Amstrong af757d6246 new menu style for services and device/ports
git-svn-id: http://www.observium.org/svn/observer/trunk@2046 61d68cd4-352d-0410-923a-c4978735b2b8
2011-04-09 15:20:07 +00:00
Tom Laermans f55a30f744 some formatting cleanups, introduce some more FIXMEs to look at, plus replace mysql_fetch_array by mysql_fetch_assoc, for great justice
git-svn-id: http://www.observium.org/svn/observer/trunk@2029 61d68cd4-352d-0410-923a-c4978735b2b8
2011-04-06 13:54:50 +00:00
Tom Laermans 3c79cafb2c can't stop uniformicationing
git-svn-id: http://www.observium.org/svn/observer/trunk@1915 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-17 16:35:18 +00:00
Tom Laermans 834989df95 restructure/reindent/htmlfix html pages, remove dead code
git-svn-id: http://www.observium.org/svn/observer/trunk@1897 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-17 00:09:20 +00:00
Adam Amstrong 8297e6aa5e fix service graphs, add CISCO-PRODUCT-MIB
git-svn-id: http://www.observium.org/svn/observer/trunk@1655 61d68cd4-352d-0410-923a-c4978735b2b8
2010-08-10 12:16:00 +00:00
Adam Amstrong 1a1750b0c3 inc.php plx
git-svn-id: http://www.observium.org/svn/observer/trunk@1336 61d68cd4-352d-0410-923a-c4978735b2b8
2010-07-10 12:52:04 +00:00