241 Commits

Author SHA1 Message Date
Sukhwinder Dhillon
be1ff03dd3 MonitoredObject: Remove deprecated methods matches() and fromParams() 2022-06-14 14:24:30 +02:00
Sukhwinder Dhillon
d8ddc6600a overrides customvarsWithOriginalNames only if the given object is of type host
A call to `__get()` reset the array if the given `$name` is a customvar
If `service` has a `host` customvar filter, the `fetchHostVariables()`
method was executed and overwrote the `customvarsWithOriginalNames` array.

fixes #4757
2022-06-13 11:56:57 +02:00
Johannes Meyer
0f64e24f99 MonitoredObject: Register filters with whereEx() 2022-05-12 16:33:30 +02:00
raviks789
8898ed85ab Change FilterMatch to FilterEqual class for single object filter on object name.
Correspondingly the DbConnection::renderFilter() (as DbQuery::renderFilter() is deprecated and will be removed, hence no modifications here)
is also modified to render accordingly.
This correctly selects the host, service or contact in case the object name contains wild card characters like "\*".
2022-05-12 16:28:35 +02:00
Johannes Meyer
c038e84fc2 Ensure Return Type Compatibility with Internal Classes 2022-03-24 12:29:06 +01:00
Johannes Meyer
6b4f4d388a monitoring: Really show custom variable names as-is 2022-02-04 15:56:44 +01:00
Johannes Meyer
d123b390b1 MonitoredObject: Keep structure of nested cvs during protection
fixes #4439
2021-07-21 08:01:08 +02:00
Johannes Meyer
1dc6f35916 MonitoredObject: Make customvar protection available to the outside 2021-07-12 09:42:03 +02:00
Johannes Meyer
5d603cd026 Macro: Also resolve service.name to service_description
resolves #4000
2020-05-13 15:32:44 +02:00
Johannes Meyer
da5704fa83
Revert "Introduce option to hide specific customvars in web" 2019-12-10 07:56:11 +01:00
Nicolai Buchwitz
e7f965e70c fix sytax error (missing space after comma) 2019-12-04 13:06:26 +01:00
Nicolai Buchwitz
55104cba14 Introduce hide customvar option in monitoring view 2019-12-04 13:06:26 +01:00
Eric Lippmann
424f687f5d
Merge pull request #3532 from Icinga/bugfix/ido-check_interval
Fetch check_interval property of monitored objects, too
2018-07-18 16:32:37 +02:00
Alexander A. Klimov
0b5620d2b5 Fetch check_interval property of monitored objects, too 2018-07-18 15:42:34 +02:00
Eric Lippmann
e684c6d18e Split contact query into subqueries
One can't fetch host and service contacts with a reasonable single
query.

refs #3088
2018-07-18 15:20:23 +02:00
Alexander A. Klimov
196cdbe4af Implement event history detail view
refs #3191
2018-01-09 13:04:06 +01:00
Michael Friedrich
ab364e0fc7 Remove unsupported livestatus functionality
Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
2017-09-29 10:33:55 +02:00
Johannes Meyer
181e2ef05c Swag: Fix swag (aka a whole bunch of code style issues..) 2017-01-27 14:48:59 +01:00
Michael Friedrich
08a82daea3 Update to icinga.com
refs #2687
2017-01-18 12:04:43 +01:00
Alexander A. Klimov
f1051f0ea5 Drop MonitoredObject::getNotes() 2016-12-05 13:33:11 +01:00
Eric Lippmann
429405be0c Fix inconsistent host and service flags
fixes #13243
2016-11-21 10:26:35 +01:00
Jennifer Mourek
c57a636290 MonitoredObject: Fix incorrect line indentation in method fetchCustomvars 2016-10-17 10:28:50 +02:00
Jennifer Mourek
c5c10adf75 MonitoredObject: Delete fallback for protected custom variables
fixes #12848
2016-10-13 08:54:30 +02:00
Eric Lippmann
01bee4641d Fix missing comment and downtime name in the object detail views 2016-09-08 15:03:45 +02:00
Alexander A. Klimov
589da9bcd1 monitoring: Apply custom variable restrictions
refs #10965
2016-04-13 15:43:42 +02:00
Alexander A. Klimov
66a7bdfc84 MonitoredObject: implement hideBlacklistedProperties()
refs #10965
2016-03-22 18:21:20 +01:00
Eric Lippmann
bb8478a219 Merge branch 'bugfix/passwords-not-hidden-by-icinga-web-2-10640'
fixes #10640
2016-02-23 15:40:27 +01:00
Eric Lippmann
acd2ef709e monitoring: Fix PHPDoc of MonitoredObject::obfuscateCustomVars()
refs #10640
2016-02-23 10:54:47 +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
Eric Lippmann
4df7fdea88 monitoring: Add obsessing to ObjectList::getFeatureStatus() 2016-01-28 14:45:22 +01:00
Eric Lippmann
6ad40b5123 monitoring: Introduce ObjectList::getFeatureStatus()
refs #8963
2016-01-27 17:37:34 +01:00
Eric Lippmann
7fd575080e PHP7: Rename String to StringHelper
refs #10251
2016-01-27 16:46:55 +01:00
Alexander A. Klimov
7bc489ba4d MonitoredObject: obfuscate custom variables recursively
refs #10640
2016-01-22 18:37:27 +01:00
Eric Lippmann
44dd4653ec monitoring: Remove applying restrictions in the detail area when not necessary 2015-12-22 13:00:25 +01:00
Eric Lippmann
7858343605 monitoring: Select comment_is_persistent for comments in the detail area 2015-11-20 15:47:04 +01:00
Eric Lippmann
c0c9f3b5eb monitoring: Select host_state_type and host_attempt in the service detail view for displaying soft states
refs #5543
2015-10-28 12:08:04 +01:00
Johannes Meyer
6a68d25bc3 MonitoredObject: Deprecate method matches()
It's now possible to achieve the same by passing the object directly to a
filter.

refs #10304
2015-10-05 14:04:40 +02:00
Johannes Meyer
07e5664fbe MonitoredObject: Allow to access a set-value by name
$object->contact|contactgroup|hostgroup|servicegroup + _name
is now allowed and returns an array of strings

refs #10304
2015-10-05 13:59:57 +02:00
Johannes Meyer
499a7d628f Macro: Resolve prefixed custom vars and object attributes
refs #10304
2015-10-05 13:18:10 +02:00
Johannes Meyer
0ed6e08175 MonitoredObject: Allow to access custom variables by property
refs #10304
2015-10-05 13:16:41 +02:00
Johannes Meyer
996959b65e MonitoredObject: Fix object_type condition in method fetchHostVariables
refs #10304
2015-10-05 12:54:30 +02:00
Johannes Meyer
7419c9e87c MonitoredObject: Allow to fetch a host's customvariables for services
refs #10304
2015-10-05 11:57:31 +02:00
Johannes Meyer
62d96a154e monitoring: Normalize custom variable names not until they're displayed 2015-09-30 13:23:54 +02:00
Eric Lippmann
2ff822c2ac Merge branch 'master' into feature/ipv6-addresses-9645-9826 2015-09-28 13:09:30 +02:00
Johannes Meyer
40c2cb2d12 MonitoredObject: Support host- and servicegroup filters in method matches()
refs #5600
2015-09-23 13:03:41 +02:00
Johannes Meyer
e42548fc80 MonitoredObject: Allow to fetch servicegroups for host objects
refs #5600
2015-09-23 13:02:43 +02:00
Johannes Meyer
f4032988bf MonitoredObject: Add method matches()
refs #5600
2015-09-17 10:40:00 +02:00
Matthias Jentsch
32b4715130 Remove unused joins and conform to coding guidelines 2015-09-14 12:05:15 +02:00
Matthias Jentsch
b2c486bf80 Add Backend queries for host and service time periods
refs #9888
2015-09-11 16:31:19 +02:00
Eric Lippmann
1fccf9c721 Merge branch 'master' into feature/monitoring-indicate-late-check-results-8378 2015-09-07 11:09:11 +02:00