I think there's an[other] import bug
Posted: Thu Sep 12, 2019 10:22 am
So, possibly related to (but different from) https://support.nagios.com/forum/viewto ... 16&t=55547, I now have this:
If I import the following timeperiods.cfg file:
The import goes fine. Note that all tabs have been replaced with spaces and all multiple spaces replaced with single spaces. Again, the import works.
The verify, however, fails with:
Note here that the excluded period has a really weird spacing. In the created /usr/local/nagios/etc/timeperiods.cfg file, here's what's there:
Note that what looks like space between "3am-4am" and "daily" in the exclude is actually multiple spaces.
So I'm back to "I think there's an[other] import bug."
If I import the following timeperiods.cfg file:
Code: Select all
define timeperiod {
timeperiod_name 3am-4am daily
alias 3am to 4am every day
day 1 - -1 03:00-04:00
}
define timeperiod {
timeperiod_name 4am-3am daily
alias 4am to 3am every day (all times except 3am-4am)
day 1 - -1 00:00-24:00
exclude 3am-4am daily
}
The verify, however, fails with:
Code: Select all
Error: Excluded time period '3am-4am daily' specified in timeperiod '4am-3am daily' is not defined anywhere!
Code: Select all
define timeperiod {
timeperiod_name 3am-4am daily
alias 3am to 4am every day
day 1 - -1 03:00-04:00
}
define timeperiod {
timeperiod_name 4am-3am daily
alias 4am to 3am every day (all times except 3am-4am)
day 1 - -1 00:00-24:00
exclude 3am-4am daily
}
So I'm back to "I think there's an[other] import bug."