Fix downtime query and schedule downtime
This commit is contained in:
parent
36e9cdb549
commit
513b50dba5
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -95,6 +95,7 @@ class ScheduleDowntimeForm extends WithChildrenCommandForm
|
|||
'host',
|
||||
'service',
|
||||
'downtime_start',
|
||||
'downtime_scheduled_start_time',
|
||||
'downtime_internal_downtime_id'
|
||||
)
|
||||
)->fetchAll();
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue