diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-02-06 21:10:07 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-02-06 21:10:07 +0100 |
commit | 9c273e68dd0eccca18334df0a188af0fe9571b01 (patch) | |
tree | 07b9d15375784d4ac479e728d2fc38eea862acdb /bin | |
parent | b1d784853dde0f2f63be4063734d5e6be73fe4f2 (diff) |
icli: Parse service downtimes
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/icli | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -277,7 +277,10 @@ sub read_objects_line { push(@{${$ref}->{contacts}}, $cache); } when ('hostdowntime') { - push(@{${$ref}->{downtimes}}, $cache); + push(@{${$ref}->{hostdowntimes}}, $cache); + } + when ('servicedowntime') { + push(@{${$ref}->{servicedowntimes}}, $cache); } when ('hostgroup') { ${$ref}->{hostgroups}->{$cache->{hostgroup_name}} = $cache; @@ -827,7 +830,7 @@ elsif ($list_type eq 'q') { display_queue(); } elsif ($list_type eq 'd') { - foreach my $downtime (@{$data->{downtimes}}) { + foreach my $downtime (@{$data->{hostdowntimes}}) { display_downtime($downtime); } } |