> On 18 Jul 2016, at 11:20, Bancal Samuel <[email protected]> wrote: > > Hi, > > We're looking how to schedule weekly downtime for a host. > We've found some doc on how to apply recurring downtimes on services ( > http://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/advanced-topics > ), and tried to adapt it to a host context by adding the following to the > host definition : > > ScheduledDowntime = { > author = "icingaadmin" > comment = "Scheduled downtime for update" > > ranges = { > thursday = "02:50-04:00" > } > }
How does that config snippet look in the entire context? Adding such to the host object won’t work, but I’d like to reproduce the error then. Kind regards, Michael > > But this makes Icinga2 crash after 1-3 minutes with the following > /var/log/icinga2/crash/report.1468832220.8373401 : > > Application information: > Application version: r2.4.10-1 > Installation root: /usr > Sysconf directory: /etc > Run directory: /run > Local state directory: /var > Package data directory: /usr/share/icinga2 > State path: /var/lib/icinga2/icinga2.state > Modified attributes path: /var/lib/icinga2/modified-attributes.conf > Objects path: /var/cache/icinga2/icinga2.debug > Vars path: /var/cache/icinga2/icinga2.vars > PID path: /run/icinga2/icinga2.pid > > System information: > Platform: Ubuntu > Platform version: 14.04.4 LTS, Trusty Tahr > Kernel: Linux > Kernel version: 3.16.0-76-generic > Architecture: x86_64 > Stacktrace: > > (0) libpthread.so.0: <unknown function> (+0x10330) [0x2abf33fac330] > (1) libc.so.6: gsignal (+0x37) [0x2abf350bec37] > (2) libc.so.6: abort (+0x148) [0x2abf350c2028] > (3) libc.so.6: <unknown function> (+0x2fbf6) [0x2abf350b7bf6] > (4) libc.so.6: <unknown function> (+0x2fca2) [0x2abf350b7ca2] > (5) libicinga.so: <unknown function> (+0x17c126) [0x2abf3aa81126] > (6) libicinga.so: icinga::ScheduledDowntime::TimerProc() (+0x375) > [0x2abf3ab22d75] > (7) libbase.so: boost::signals2::detail::signal_impl<void > (boost::intrusive_ptr<icinga::Timer> const&), > boost::signals2::optional_last_value<void>, int, std::less<int>, > boost::function<void (boost::intrusive_ptr<icinga::Timer> const&)>, > boost::function<void (boost::signals2::connection const&, > boost::intrusive_ptr<icinga::Timer> const&)>, > boost::signals2::mutex>::operator()(boost::intrusive_ptr<icinga::Timer> > const&) (+0x1cc) [0x2abf343290cc] > (8) libbase.so: icinga::Timer::Call() (+0x29) [0x2abf342d5d19] > (9) libbase.so: > icinga::ThreadPool::WorkerThread::ThreadProc(icinga::ThreadPool::Queue&) > (+0x326) [0x2abf342d2af6] > (10) libboost_thread.so.1.54.0: <unknown function> (+0xba4a) > [0x2abf3391fa4a] > (11) libpthread.so.0: <unknown function> (+0x8184) [0x2abf33fa4184] > (12) libc.so.6: clone (+0x6d) [0x2abf3518237d] > > *** > * This would indicate a runtime problem or configuration error. If you > believe this is a bug in Icinga 2 > * please submit a bug report at https://dev.icinga.org/ and include this > stack trace as well as any other > * information that might be useful in order to reproduce this problem. > *** > > Is it a syntax problem (and if so, what is the correct syntax?) or a bug in > Icinga2 ? > > Regards, > Samuel > > -- > Samuel Bancal > ENAC-IT > EPFL > > _______________________________________________ > icinga-users mailing list > [email protected] > https://lists.icinga.org/mailman/listinfo/icinga-users -- Michael Friedrich, DI (FH) Senior Developer NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg Tel: +49 911 92885-0 | Fax: +49 911 92885-77 CEO: Julian Hein, Bernd Erk | AG Nuernberg HRB18461 http://www.netways.de | [email protected] ** OSBConf 2016 - September - osbconf.org ** ** OSMC 2016 - November - netways.de/osmc ** _______________________________________________ icinga-users mailing list [email protected] https://lists.icinga.org/mailman/listinfo/icinga-users
