Commit Graph

2694 Commits

Author SHA1 Message Date
moreamazingnick bc47867f20
Fix PluginOutputHookImplementation gets called twice #5271 (#5272) 2024-10-08 09:25:02 +02:00
Johannes Meyer f8c08dbfec DeleteDowntimesCommandForm: Ignore 404's
fixes #5183
2024-08-07 13:56:08 +02:00
Johannes Meyer e1479b4a6a list/history: Use intl's default locale to format time and date 2024-08-07 13:16:51 +02:00
raviks789 91ad755759 Remove redundant gravatar in contact detail
The gravatar for contacts was never correctly rendered in the detailed page. Hence it will be
completely removed.
2023-09-07 13:38:02 +02:00
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
Sukhwinder Dhillon e3ce1c4b2d (Hosts/Services)Controller: Cannot check `ObjectList` instance with `! empty()` 2023-08-23 10:53:15 +02:00
Sukhwinder Dhillon 6f04c54f3c ListController::createTabs(): Add missing return statement 2023-08-23 10:53:15 +02:00
Sukhwinder Dhillon ee9d139a3a PhpDoc: Fix incorrect `@param` and `@return` type hints 2023-08-23 10:53:15 +02:00
Sukhwinder Dhillon 8d55385e38 HealthController: Add return statement in new line because `render()` returns nothing 2023-08-23 10:53:14 +02:00
Sukhwinder Dhillon 7cd89490cc (EventOverview/StateHistory)Form: Method `getValue()` expects only one param 2023-08-23 10:53:14 +02:00
Sukhwinder Dhillon 4341a32c1f ProcessCheckResultCommandForm: Fix `Variable '$object' is probably undefined` 2023-08-23 10:53:14 +02:00
Sukhwinder Dhillon 3db461ed62 ListController: Fix method name case 2023-08-23 10:53:14 +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
Sukhwinder Dhillon 3b04a0489e Replace class `Backend` use with `MonitoringBackend` and remove class `Backend` 2022-06-14 14:24:30 +02:00
Sukhwinder Dhillon 60756afa34 Replace `MonitoringBackend::createBackend()` with `MonitoringBackend::instance()` 2022-06-14 14:24: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
Alexander A. Klimov e6eb1540c0 Monitoring: permit disabling IDO backends no Icinga writes to 2022-04-11 16:40:22 +02:00
Patrick Dolinic f9ec105537 Monitoring: Delete unnecessary cli-command 2022-04-11 13:31:59 +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 3dc384fb58 Avoid passing `null` to non-nullable arguments 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 7a12849a66 TacticalController: Use correct state filter for big services url
fixes #4714
2022-03-24 10:21:33 +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 3166d112f1 monitoring/list/hosts: Apply restrictions to host service problem summary 2022-02-07 17:20:41 +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 56cde52351 Drop locales of builtin modules 2022-02-04 15:58:06 +01:00
Johannes Meyer 6b4f4d388a monitoring: Really show custom variable names as-is 2022-02-04 15:56:44 +01:00
Johannes Meyer 316885b271
Merge pull request #4498 from Icinga/bugfix/tactical-4494
/monitoring/tactical: fall back to unknown services if none critical
2021-12-14 10:24:57 +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