summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/icli7
1 files changed, 5 insertions, 2 deletions
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);
}
}