1630 Commits

Author SHA1 Message Date
raviks789
33a5f765b9 Use style element to create css class for dynamic inline style
The `style` element with `nonce` attribute is used to create css classes for
inline styles that are not static. This prevents Content-Security-Policy violations.
2023-08-28 16:40:33 +02:00
raviks789
459f4198c3 Replace static inline styles with css class
The static inline styles are replaced with css class to avoid Content-Security-Policy violations.
2023-08-28 16:30:12 +02:00
raviks789
4bece296e5 MonitoringFlags: Import class MonitoredObject 2023-08-23 10:53:13 +02:00
raviks789
a780d9790b Declare property $view for helpers in monitoring modules
The property `$view` with type `Icinga\Web\View` is declared for helpers in `modules/monitoring/application/views/helpers`
directory.
2023-08-23 10:53:13 +02:00
raviks789
8a17c56345 Remove requiring vendor dependencies
Also avoid autoloading vendor.
2023-08-09 15:16:16 +02:00
Johannes Meyer
e542982de0 Fix some reflected XSS bugs
fixes #4979
2023-01-12 09:55:57 +01:00
Sukhwinder Dhillon
762630c027 event-history.phtml: Don't sort events by time
Sort only by day and date
2022-10-10 09:59:26 +02:00
Alexander Aleksandrovič Klimov
ad827395af Unveil hidden downtime in checkable detail view
Case: there are no comments, one downtime and you may not schedule additional ones.

Before: downtime is not shown in checkable detail view.

After: downtime is shown in checkable detail view.
2022-10-04 16:04:55 +02:00
Johannes Meyer
e3a9b56423 eventgrid: Avoid passing null to string type functions 2022-06-30 08:40:28 +02:00
Dirk Goetz
d5d714b1ee Fix gravatar: set content-type header and size
Fixes #2254
2022-06-15 09:03:12 +02:00
Johannes Meyer
1717afbe39 event-history.phtml: Use Intl to localize dates
instead of `strftime`, which is deprecated
2022-03-24 12:29:06 +01:00
Johannes Meyer
f72837676c monitoring: Drop controller AlertsummaryController 2022-03-24 12:27:20 +01:00
Johannes Meyer
6802abc2c7 quick-actions.phtml: Set explicit ids instead of overriding the name..
..to avoid duplicate ids

fixes #4711
2022-03-24 10:21:07 +01:00
Johannes Meyer
a48bd84fb4 monitoring: Drop obsolete view script show/components/customvars.phtml 2022-03-02 10:41:23 +01:00
Johannes Meyer
83e8b3b8e8 detail-content: Use widget CustomVarTable to render custom vars 2022-03-02 10:40:57 +01:00
Johannes Meyer
48e0f1bd1f PluginOutput: Transform newlines first and purify HTML afterwards
fixes #4686
2022-03-02 08:23:51 +01:00
Johannes Meyer
6d744e585f monitoring/list/services: Enhance PDF layout 2022-03-01 17:04:38 +01:00
Johannes Meyer
159ca2ce3f monitoring/list/servicegroups: Enhance PDF layout 2022-03-01 17:04:38 +01:00
Johannes Meyer
861f166798 monitoring/list/hosts: Enhance PDF layout 2022-03-01 17:04:38 +01:00
Johannes Meyer
4da687ae27 monitoring/list/hostgroups: Enhance PDF layout 2022-03-01 17:04:38 +01:00
Johannes Meyer
d5fbae7b28 monitoring/list/downtimes: Enhance PDF layout 2022-03-01 17:04:38 +01:00
Johannes Meyer
122d52c953 monitoring/list/contacts: Enhance PDF layout 2022-03-01 17:04:38 +01:00
Johannes Meyer
298f2a3061 monitoring/list/comments: Enhance PDF layout 2022-03-01 17:04:38 +01:00
Johannes Meyer
796742f03d monitoring/list/hosts: Don't show unhandled service counts
It has too much problems. It wasn't even visible since the
initial release, at least not if there were many results.
It being visible was more a case of chance than guarantee.
We now also identified a major issue with restrictions and
the way we can assemble queries here. In short, there are
too much technical difficulties that we deemed it not
worthwhile to keep.
2022-02-25 17:09:13 +01:00
Johannes Meyer
28a8771a37 components/comments.phtml: Use base target _next only for comment links 2022-02-07 14:47:03 +01:00
Johannes Meyer
4f501a89f5 monitoring: Avoid duplicate ids for check now and remove ack forms 2022-02-04 17:21:41 +01:00
Johannes Meyer
6b4f4d388a monitoring: Really show custom variable names as-is 2022-02-04 15:56:44 +01:00
Johannes Meyer
47922673fc PluginOutput: Don't "optimize" two subsequent newlines to one
fixes #4522
2021-11-02 09:00:21 +01:00
Ravi Kumar Kempapura Srinivasa
be3a722a28 Compress comment detail in Hosts detail and Comments list. 2021-10-07 10:44:10 +02:00
Johannes Meyer
e035f5b9f2 monitoring/list/services: Protect custom variables added with ?addColumns 2021-07-12 09:42:03 +02:00
Johannes Meyer
c953e4f92d monitoring/list/hosts: Protect custom variables added with ?addColumns 2021-07-12 09:42:03 +02:00
Florian Strohmaier
ac1a364682 Contact: Fix th styles 2021-06-23 07:39:55 +02:00
Johannes Meyer
e01f51ffc7 PluginOutput: Fix that subsequent escaped newlines are not transformed
fixes #4297
2021-02-15 11:23:36 +01:00
Alexander A. Klimov
6af1e5d43b Monitoring: add expire option for comments
refs #3447
2020-11-30 17:24:57 +01:00
Eric Lippmann
d42c912ea4 Use ticket hook in downtime details 2020-09-30 09:32:18 +02:00
Eric Lippmann
5243160d5d Add Comment to comment details and use ticket hook 2020-09-30 09:32:18 +02:00
Alexander A. Klimov
361fc27922 /monitoring/tactical: don't show negative amounts of monitored objects
refs #4174
2020-06-18 08:52:53 +02:00
Johannes Meyer
a240e306ed Preserve/Remove param showCompact instead of view 2020-06-04 08:50:41 +02:00
Johannes Meyer
4aab354b7f PluginOutput: Adjust html detection regex again 2020-05-13 17:16:22 +02:00
Johannes Meyer
87e676e1fb customvars.phtml: Show a customvar name as-is
Don't uppercase first, exchange `_` for spaces and lower everything else

resolves #3987
2020-05-13 14:56:58 +02:00
Feu Mourek
d7a8765fc9 Add appropriate aria labels to tactical overview 2020-04-09 08:36:29 +02:00
Valentina Da Rold
48fb288206 Add EventDetailsExtensionHook and include it into EventController 2020-01-13 09:33:24 +01:00
Johannes Meyer
d79feca63f
Merge pull request #3969 from WuerthPhoenix/custom-tab-hook
Add custom tab hook
2019-12-12 15:55:25 +01:00
Florian Strohmaier
098898eca6 Services/Hosts: Remove status-bar-ghost 2019-12-06 15:36:34 +01:00
Johannes Meyer
bb7f1cd24b monitoring: Apply permission no-monitoring/contacts where applicable 2019-12-05 08:50:51 +01:00
Johannes Meyer
cbc12ab31e event-history.phtml: Don't use hasResult() to check if there are results
28ec1e236 has no result on history views as they never count their results.
So restructuring this particular view script I deemed reasonable since the
history queries tend to show very poor performance.

refs #3905
refs #3836
2019-10-11 10:27:43 +02:00
Johannes Meyer
8ec0c40f21 monitoring: Fix missing load more link when there's a single row 2019-10-08 13:36:35 +02:00
Gianluca Piccolo
1e2bd37ae8 Add custom tab hook 2019-10-02 13:42:42 +02:00
Johannes Meyer
ab99d25cb5 PluginOutput: Relax html restrictions 2019-09-12 10:50:17 +02:00
Johannes Meyer
c3603c991d downtimes/comments: Don't mark service urls with .rowaction
fixes #3920
2019-09-09 12:28:49 +02:00