Fix downtime query and schedule downtime
This commit is contained in:
parent
36e9cdb549
commit
513b50dba5
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
[localdb]
|
[localdb]
|
||||||
type = ido
|
type = ido
|
||||||
resource = "ido-mysql"
|
resource = "ido-mysql"
|
||||||
|
@ -8,11 +9,12 @@ type = livestatus
|
||||||
socket = "/var/lib/icinga/rw/live"
|
socket = "/var/lib/icinga/rw/live"
|
||||||
disabled = 0
|
disabled = 0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[localfile]
|
[localfile]
|
||||||
type = statusdat
|
type = statusdat
|
||||||
status_file = "/usr/local/icinga/var/status.dat"
|
resource = "localfile-statusdat"
|
||||||
objects_file = "/usr/local/icinga/var/objects.cache"
|
|
||||||
disabled = 0
|
|
||||||
|
|
||||||
[localfailsafe]
|
[localfailsafe]
|
||||||
type = combo
|
type = combo
|
||||||
|
|
|
@ -46,3 +46,9 @@ password = icinga
|
||||||
username = icinga
|
username = icinga
|
||||||
port = 3306
|
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',
|
'host',
|
||||||
'service',
|
'service',
|
||||||
'downtime_start',
|
'downtime_start',
|
||||||
|
'downtime_scheduled_start_time',
|
||||||
'downtime_internal_downtime_id'
|
'downtime_internal_downtime_id'
|
||||||
)
|
)
|
||||||
)->fetchAll();
|
)->fetchAll();
|
||||||
|
|
|
@ -45,6 +45,7 @@ class DowntimeQuery extends StatusdatQuery
|
||||||
'downtime_trigger_time' => 'trigger_time',
|
'downtime_trigger_time' => 'trigger_time',
|
||||||
'downtime_triggered_by_id' => 'triggered_by_id',
|
'downtime_triggered_by_id' => 'triggered_by_id',
|
||||||
'downtime_internal_downtime_id' => 'downtime_id',
|
'downtime_internal_downtime_id' => 'downtime_id',
|
||||||
|
'downtime_scheduled_start_time' => 'start_time',
|
||||||
'host' => 'host_name',
|
'host' => 'host_name',
|
||||||
'host_name' => 'host_name',
|
'host_name' => 'host_name',
|
||||||
'service_host_name' => 'host_name'
|
'service_host_name' => 'host_name'
|
||||||
|
|
Loading…
Reference in New Issue