1771 Commits

Author SHA1 Message Date
Eric Lippmann
c0e3447339 monitoring: Adapt host and service classes to match their base class' interface 2014-09-12 10:17:46 +02:00
Eric Lippmann
aca5a2e466 monitoring: Fetch Icinga object properties lazily 2014-09-12 10:16:31 +02:00
Eric Lippmann
b6ac31d10f monitoring/commands: Let transports use the Icinga command file command renderer
refs #6593
2014-09-11 17:39:59 +02:00
Eric Lippmann
1df8076234 monitoring/commands: Add command renderer for the Icinga command file
refs #6593
2014-09-11 17:39:13 +02:00
Eric Lippmann
3845301dfb monitoring/commands: Add object command classes
refs #6593
2014-09-11 17:18:07 +02:00
Eric Lippmann
c40ac6f9dc monitoring/commands: Add `DisableNotificationsExpireCommand'
refs #6593
2014-09-11 17:11:32 +02:00
Eric Lippmann
1247fdcad4 monitoring/commands: Move toggle instance feature commands into a single command
refs #6593
2014-09-11 17:10:20 +02:00
Marius Hein
9c2cf0bd0f StateHistoryQuery: Make whereToSql robust
This fixes bugs is a array for expression comes in or types
does not exist.

fixes #7133
2014-09-10 10:07:03 +02:00
Eric Lippmann
5757a6f34b monitoring: Fix typo in the `Downtime' data view 2014-09-10 09:29:01 +02:00
Eric Lippmann
171b366744 monitoring/commands: Let `AddCommentCommand' be the command object for adding both host and service commands
refs #6593
2014-09-09 16:41:41 +02:00
Eric Lippmann
28a66c8541 monitoring/commands: Introduce `ObjectCommand' for commands that involve a Icinga object
refs #6593
2014-09-09 16:40:09 +02:00
Eric Lippmann
d9fbbca447 monitoring/commands: Move AddCommentCommand' to WithCommentCommand'
`AddCommentCommand' will be the command for adding both host and service comments.

refs #6593
2014-09-09 16:39:22 +02:00
Eric Lippmann
a841b0956d monitoring/commands: Do not require command objects to return the command string
There will be command renderer instead.

refs #6593
2014-09-09 16:35:06 +02:00
Johannes Meyer
83772c6684 Merge branch 'master' into bugfix/rebuild-form-builder-5525 2014-09-09 16:03:22 +02:00
Eric Lippmann
0e7ca591ec Merge branch 'master' into bugfix/commands-6593
Conflicts:
	application/forms/Preference/GeneralForm.php
	application/views/helpers/FormDateTime.php
	modules/monitoring/application/forms/Command/CommandForm.php
2014-09-08 10:16:05 +02:00
Johannes Meyer
ae9e5a40cc Merge branch 'master' into bugfix/rebuild-form-builder-5525
Conflicts:
	application/forms/Preference/GeneralForm.php
2014-09-08 08:46:53 +02:00
Thomas Gelf
6095e44064 Host/Service: provide process_perfdata attribute 2014-09-05 19:05:13 +02:00
Thomas Gelf
cbaa2d8ae9 StateHistoryQuery: tune type queries 2014-09-05 18:41:51 +02:00
Thomas Gelf
9ea377fd45 NotificationHistoryQuery: names instead of aliases
refs #7104
2014-09-05 18:16:59 +02:00
Thomas Gelf
38c6d6aaf8 StatusSummaryQuery: reorganize, add new columns
refs #6993
2014-09-05 18:16:58 +02:00
Johannes Meyer
7d212658bc Fix "Use statement with non compound name..." in TimelineController 2014-09-05 09:17:54 +02:00
Johannes Meyer
d021747bde Fix form widgets
refs #5525
2014-09-05 09:17:09 +02:00
Eric Lippmann
a83ddb9d8e monitoring/commands: Let ScheduleDowntimeCommand' extend AddCommentCommand'
refs #6593
2014-09-04 15:52:20 +02:00
Eric Lippmann
a94e84f3b0 monitoring/commands: Add common `AddCommentCommand'
refs #6593
2014-09-04 15:51:41 +02:00
Eric Lippmann
fe47441efc monitoring/commands: Add command to schedule a service downtime
refs #6593
2014-09-04 15:42:11 +02:00
Eric Lippmann
1c8f880d18 modules/command: Remove old `ScheduleDowntimeCommand'
refs #6593
2014-09-04 15:38:48 +02:00
Eric Lippmann
f57bb0f6a1 modules/commands: Add common `ScheduleDowntimeCommand'
`ScheduleDowntimeCommand' is the base class for commands scheduling downtimes.

refs #6593
2014-09-04 15:37:30 +02:00
Marius Hein
f8b3ffb3c8 AbstractObject: Rename to MonitoredObject
refs #6932
2014-09-04 14:00:48 +02:00
Eric Lippmann
a45b17fcd0 monitoring/lib: Add methods Service::getHostName()' and Service::getName()'
The upcoming service command objects will require a service object.
In order to build the command string, the service command objects require
retrieval of the service's host name and the service's name.

The actual implementation of the methods is subject to change

refs #6593
2014-09-04 12:54:52 +02:00
Eric Lippmann
c3c0043307 Merge branch 'master' into bugfix/commands-6593 2014-09-03 23:23:20 +02:00
Thomas Gelf
8fdf20fbf2 Groupsummary: remove invalid sort column discovery
This didn't result in a loop 'til now as it wasn't even used. The problem
here is that the same View is used for tow differend things, this makes no
sense. In the meantime removing that code fixes related problems.
2014-09-03 18:55:20 +02:00
Thomas Gelf
1734f01040 CommentdeletionhistoryQuery: 1970-01-01 -> -02
refs #7000
2014-09-02 17:02:58 +02:00
Thomas Gelf
a58b2aac00 Ido\StatusQuery: join ALL latest comment
And it was soooo fast :p

refs #7057
2014-09-02 15:31:06 +02:00
Marius Hein
19136b548a StatusQuery: Separate last comment fields
fixes #7057
2014-09-02 13:57:43 +02:00
Thomas Gelf
307787cfb7 DataView: use default sort order if none given
We should not be forced to order(null) to have the default order, that
should be the default in case order has not been called.

refs #6644
2014-09-02 12:54:38 +02:00
Thomas Gelf
6be31f4f51 Downtime*Query: use 1970-01-02 as "null"
refs #7000
2014-09-02 12:47:03 +02:00
Thomas Gelf
4a95b9d942 StatusSummaryQuery: respect pending, add columns 2014-09-02 12:45:15 +02:00
Thomas Gelf
153013bbc6 Ido\StatusQuery: pending hosts are not problems 2014-09-02 12:28:25 +02:00
Thomas Gelf
8f124051e3 MonitoringBackend: use correct config object 2014-09-02 11:32:48 +02:00
Marius Hein
1c24273c9b Backend: Better implementation for createBackend
Thanks eric!

fixes #7043
2014-09-01 16:11:34 +02:00
Eric Lippmann
920c0b9c6d monitoring/commands: Add (ENABLE|DISABLE)_PERFORMANCE_DATA commands
`TogglePerformanceData' is the command object for enabling/disabling the processing of host and service performance data on an Icinga instance.

refs #6593
2014-09-01 15:20:14 +02:00
Eric Lippmann
0edd14559c monitoring/commands: Add (ENABLE|DISABLE)_PASSIVE_SERVICE_CHECKS commands
`TogglePassiveServiceChecks' is the command object for enabling/disabling passive service checks on an Icinga instance.

refs #6593
2014-09-01 15:18:40 +02:00
Eric Lippmann
efd16ba79f monitoring/commands: Add (ENABLE|DISABLE)_PASSIVE_HOST_CHECKS commands
`TogglePassiveHostChecks' is the command object for enabling/disabling passive host checks on an Icinga instance.

refs #6593
2014-09-01 15:18:31 +02:00
Eric Lippmann
c5e35c9614 monitoring/commands: Add (START|STOP)_OBSESSING_OVER_SERVICE_CHECKS commands
`ToggleObsessingOverServiceChecks' is the command object for enabling/disabling processing of service checks via the OCHP command on an Icinga instance.

refs #6593
2014-09-01 15:15:11 +02:00
Eric Lippmann
cd29adc0bd monitoring/commands: Add (START|STOP)_OBSESSING_OVER_HOST_CHECKS commands
`ToggleObsessingOverHostChecks' is the command object for enabling/disabling processing of host checks via the OCHP command on an Icinga instance.

refs #6593
2014-09-01 15:14:49 +02:00
Eric Lippmann
cdbd24ec99 monitoring/commands: Add (ENABLE|DISABLE)_NOTIFICATIONS/DISABLE_NOTIFICATIONS_EXPIRE_TIME commands
`ToggleNotifications' is the command object for enabling/disabling host and service notifications on an Icinga instance with an optional expire time for disabling notifications.

refs #6593
2014-09-01 15:14:39 +02:00
Eric Lippmann
5474c661e1 monitoring/commands: Add (ENABLE|DISABLE)_FLAP_DETECTION commands
`ToggleFlapDetection' is the command object for enabling/disabling host and service flap detection on an Icinga instance.

refs #6593
2014-09-01 15:14:31 +02:00
Eric Lippmann
010c5b45ba monitoring/commands: Add (ENABLE|DISABLE)_EVENT_HANDLERS commands
`ToggleEventHandlers' is the command object for enabling/disabling host and service event handlers on an Icinga instance.

refs #6593
2014-09-01 15:14:23 +02:00
Eric Lippmann
fda48788ff monitoring/commands: Add (START|STOP)_EXECUTING_SVC_CHECKS commands
`ToggleActiveServiceChecks' is the command object for enabling/disabling active service checks on an Icinga instance.

refs #6593
2014-09-01 15:14:15 +02:00
Eric Lippmann
d2d69b9bcd monitoring/commands: Add (START|STOP)_EXECUTING_HOST_CHECKS commands
`ToggleActiveHostChecks' is the command object for enableing/disabling active host checks on an Icinga instance.

refs #6593
2014-09-01 15:13:59 +02:00