summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-02-06 21:10:07 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-02-06 21:10:07 +0100
commit9c273e68dd0eccca18334df0a188af0fe9571b01 (patch)
tree07b9d15375784d4ac479e728d2fc38eea862acdb /bin
parentb1d784853dde0f2f63be4063734d5e6be73fe4f2 (diff)
icli: Parse service downtimes
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);
}
}