From 9c273e68dd0eccca18334df0a188af0fe9571b01 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 6 Feb 2011 21:10:07 +0100 Subject: icli: Parse service downtimes --- bin/icli | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/icli b/bin/icli index b700d3f..dcf1f4b 100755 --- a/bin/icli +++ b/bin/icli @@ -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); } } -- cgit v1.2.3