summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2010-09-12 17:22:49 +0200
committerDaniel Friesel <derf@finalrewind.org>2010-09-12 17:22:49 +0200
commit0749985ac7014ae0664783ce8f32c85eb46165db (patch)
tree48a3e807ae1f7e6a499364ca978951f32a6bfdd4 /bin
parentfdca5cb6f1414cd8f7eea928c380ba8f0ab56774 (diff)
Add hostdowntime & servicedependency to known objects
Diffstat (limited to 'bin')
-rwxr-xr-xbin/icli9
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/icli b/bin/icli
index 4dd19c9..229d85a 100755
--- a/bin/icli
+++ b/bin/icli
@@ -71,6 +71,9 @@ sub read_objects_line {
when ('contactstatus') {
push(@{${$ref}->{contacts}}, $cache);
}
+ when ('hostdowntime') {
+ push(@{${$ref}->{downtimes}}, $cache);
+ }
when ('hostgroup') {
${$ref}->{hostgroups}->{$cache->{hostgroup_name}} = $cache;
}
@@ -80,7 +83,11 @@ sub read_objects_line {
when ('servicecomment') {
# TODO
}
- when ([qw[timeperiod command contactgroup contact host service]]) {
+ when ([qw[
+ timeperiod command contactgroup contact host service
+ servicedependency
+ ]])
+ {
# skipped for now
}
default {