Fix downtime query and schedule downtime

This commit is contained in:
Jannis Moßhammer 2013-10-20 16:11:39 +02:00
parent 36e9cdb549
commit 513b50dba5
4 changed files with 14 additions and 4 deletions

View File

@ -1,3 +1,4 @@
[localdb]
type = ido
resource = "ido-mysql"
@ -8,11 +9,12 @@ type = livestatus
socket = "/var/lib/icinga/rw/live"
disabled = 0
[localfile]
type = statusdat
status_file = "/usr/local/icinga/var/status.dat"
objects_file = "/usr/local/icinga/var/objects.cache"
disabled = 0
resource = "localfile-statusdat"
[localfailsafe]
type = combo

View File

@ -45,4 +45,10 @@ host = localhost
password = icinga
username = icinga
port = 3306
dbname = icinga
dbname = icinga
[localfile-statusdat]
type = statusdat
status_file = "/usr/local/icinga-mysql/var/status.dat"
object_file = "/usr/local/icinga-mysql/var/objects.cache"
disabled = 0

View File

@ -95,6 +95,7 @@ class ScheduleDowntimeForm extends WithChildrenCommandForm
'host',
'service',
'downtime_start',
'downtime_scheduled_start_time',
'downtime_internal_downtime_id'
)
)->fetchAll();

View File

@ -45,6 +45,7 @@ class DowntimeQuery extends StatusdatQuery
'downtime_trigger_time' => 'trigger_time',
'downtime_triggered_by_id' => 'triggered_by_id',
'downtime_internal_downtime_id' => 'downtime_id',
'downtime_scheduled_start_time' => 'start_time',
'host' => 'host_name',
'host_name' => 'host_name',
'service_host_name' => 'host_name'