Alexander A. Klimov
d40e85b8a3
Monitoring\Controller#getRestriction(): return filters matching all, not none
...
Filter::matchAny() without any subfilters matches none,
Filter::matchAll() without any subfilters matches all.
2019-04-15 16:03:43 +02:00
Alexander A. Klimov
906c1668a4
Split Json::encode() into Json::encode() and Json::sanitize()
...
refs #2635
2018-06-21 16:01:53 +02:00
Alexander A. Klimov
02b60633ff
Auto-sanitize only in the monitoring module
...
refs #2635
2018-06-20 18:05:12 +02:00
Klaus Jrgensen
fa9b2981d7
Fix PHP fatal error on monitoring/health/info when asking for JSON
...
Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
2017-11-10 11:16:33 +01:00
Eric Lippmann
f4ce2a5d82
Fix code style issues
2017-11-08 11:29:33 +01:00
Johannes Meyer
37aeff7791
Respect limits and sort orders for format requests
...
fixes #2967
2017-10-23 15:49:12 +02:00
Mikesch-mp
c17c1b876c
Export JSON with .json extension
...
Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
2017-10-18 13:47:08 +02:00
Mikesch-mp
d76a18dd91
Export CSV files with .csv extension
...
refs #2808
Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
2017-10-18 13:21:19 +02:00
Johannes Meyer
181e2ef05c
Swag: Fix swag (aka a whole bunch of code style issues..)
2017-01-27 14:48:59 +01:00
Alexander A. Klimov
474803fee4
Change all license headers to only reflect a file's year of creation
...
refs #11000
2016-02-08 15:41:00 +01:00
Matthias Jentsch
feaa92c491
Allow passing customvar names in upper and lower case
...
Fix that customvar names are not properly lowercased in all places.
refs #10172
2015-09-28 16:07:11 +02:00
Eric Lippmann
0f8c28d749
Merge branch 'master' into feature/api-9606
2015-09-07 11:33:44 +02:00
Johannes Meyer
91315738c8
monitoring: Allow `instance_name' as restriction column
...
refs #9934
2015-08-25 16:39:40 +02:00
Eric Lippmann
2229665ec6
monitoring: Return an empty filter in Controller::getRestriction() if the authenticated user is not restricted
...
This is because applyFilter requires a filter object.
2015-08-20 14:24:06 +02:00
Eric Lippmann
dcb1502286
monitoring: Implement Controller::getRestriction()
...
Controller::applyRestriction() breaks fluent interfaces whereas Controller::getRestriction() doesn't.
2015-08-20 13:11:36 +02:00
Eric Lippmann
0e14cb48da
monitoring: Ignore restrictions if user has the wildcard restriction
...
resolves #9830
2015-08-04 16:28:45 +02:00
Johannes Meyer
fb9641fb3c
Controller: Validate restriction columns
2015-06-18 16:43:20 +02:00
Eric Lippmann
7793b61e4c
monitoring: Combine restrictions w/ OR
...
If a user has more than one filter for the same restriction, the filters will be combined w/ or. The combined filters will then be applied w/ AND to the query.
refs #9009
2015-05-29 11:40:26 +02:00
Johannes Meyer
32e8b606b4
Monitoring\Controller: Drop `compactView' property, as it's not used anywere
2015-04-15 15:17:59 +02:00
Alexander A. Klimov
20b09d3bda
Inherit from Icinga\Web\Controller rather than from Icinga\Web\Controller\ModuleActionController
2015-04-08 15:13:59 +02:00
Eric Lippmann
6bae2e0a53
Note that our license is GPL v2 or any later version in our license header instead of pointing to the license's URL
2015-02-04 10:52:27 +01:00
Eric Lippmann
5b4fab0750
Add license header
...
This time without syntax errors hopefully :)
2015-02-03 16:27:59 +01:00
Eric Lippmann
5fa2e3cfdc
Revert "Add license header"
...
This reverts commit 338d067aba
.
2015-02-03 16:16:26 +01:00
Eric Lippmann
338d067aba
Add license header
...
fixes #7788
2015-02-03 15:51:04 +01:00
Eric Lippmann
b2f93abb12
monitoring/security: Require a Filterable instead of a DataView in applyRestriction()
2015-01-27 14:24:56 +01:00
Eric Lippmann
3cbafe16f6
monitoring/security: Move applyRestriction() to the module's base controller
2015-01-27 14:22:37 +01:00
Johannes Meyer
f1d7cd8b50
Remove forgotten coding standards annotation
2014-07-16 13:59:43 +02:00
Johannes Meyer
3105c2059e
Remove license headers from all files
...
refs #6309
2014-07-15 13:43:52 +02:00
Thomas Gelf
b7fc0b67a8
Web/controllers: use own Request/Response objects
...
* introduces Icinga\Web\Response
* uses ModuleActionController where necessary
* no module translationDomain voodoo in base ActionController
2014-06-22 13:49:21 +02:00
Thomas Gelf
e2f7a1054e
CSV/JSON export: work with new query interfaces
...
NB: I do not like the fact that we have to do as follows:
DataView->getQuery()->fetchWhatever();
Guess this is worth a few more proxy functions.
2014-06-21 00:09:11 +02:00
Thomas Gelf
ccb01aa152
Monitoring\Controller: add $url to all views
...
There are too many view scripts fiddling with namespaces. There is
still the url helper, not sure why it's not going to be used. I may
roll this back one far day...
2014-06-20 12:26:00 +02:00
Thomas Gelf
468b290277
Monitoring\Controller: provide $this->backend
...
Every monitoring controller needs $backend, so why declaring it over
and over again. Created "moduleInit" dummy function in our base action
controller to allow such implementations without polluting init().
2014-06-17 12:55:43 +00:00
Thomas Gelf
76c1aa73c8
Monitoring\Controller: remove obsolete namespaces
2014-05-20 22:13:39 +00:00
Thomas Gelf
99041d0f15
Prepare support for custom additional columns
2014-03-21 10:24:17 +00:00
Michael Friedrich
5853614d55
Fix CSV Export in monitoring module.
...
Fixes #5722
2014-03-06 23:54:03 +01:00
Thomas Gelf
5dbf1e48a7
Allow format=sql to everybody right now
...
* we have no "devel" environment any more
* we might allow this based on permissions
2014-03-06 09:17:55 +00:00
Thomas Gelf
948af6a194
We need service perfdata for inline pies
2014-02-21 14:04:40 +00:00
Thomas Gelf
77dada8318
A few small backend changes
2014-02-21 14:03:49 +00:00
Thomas Gelf
6ef87f4644
Example showing restriction usage in the monitoring module
...
fixes #4108
2014-01-22 13:34:39 +00:00
Eric Lippmann
e48afa762c
Monitoring/Controller: Move property compactView to base controller class
2013-10-23 15:38:06 +02:00
Eric Lippmann
ca1d50ae53
Rename Icinga 2 Web to Icinga Web 2
2013-10-23 15:11:06 +02:00
Jannis Moßhammer
16124989dd
Various style fixes, changed icon size, fixed show/service
2013-10-22 15:58:24 +02:00
Jannis Moßhammer
f350011028
Add Status.dat backend
...
refs #3801
2013-10-20 15:16:44 +02:00
Jannis Moßhammer
6095a71a8d
CS Fixes
...
refs #4868
2013-10-17 21:40:02 +02:00
Jannis Moßhammer
4a95ba3468
Change url handling to detail on hashtag, add service filter
...
The url is now
http://%mainUrl%#%anchor%!detail=%detailUrl%
which allows us to better support IE and prevents
the detail url from appearing on the server side.
refs #4868
2013-10-17 19:55:00 +02:00
Jannis Moßhammer
df81c85090
Fix Monitoring\Controller using renamed HostStatusView
...
refs #4469
2013-10-17 19:52:54 +02:00
Eric Lippmann
ac2201c3bc
Monitoring/List/Services: Fix select missing columns
...
refs #4824
2013-10-14 13:36:59 +02:00
Eric Lippmann
2588b8dbb6
Add monitoring controller class
...
refs #4823
2013-10-14 12:57:26 +02:00