Timeperiods Write to Disk limited in field length?
Brought to you by:
wizonet
I'm unable to write to disk certain timeperiods - even though the syntax is correct for Nagios.
For example, I can write to disk;
define timeperiod {
timeperiod_name DST-AET-excl
alias DST-AET-excl
register 1
sunday 1 april - sunday 1 may 20:00-21:00
}
However, it will not write to disk, if the field period is longer;
define timeperiod {
timeperiod_name DST-AET-excl
alias DST-AET-excl
register 1
sunday 1 april - sunday 1 august 20:00-21:00
}
As a work around I increased the fill length from 30 to 40 in functions/NagConfigClass.php to get around this issue.
Thank you - the database fild size is 255, so it's ok - I will fix the $strFillLen in tbl_timeperiod
Fixed in GIT Version 2025-04-20:
https://gitlab.com/wizonet/nagiosql/-/commit/ec73970dc54e514f2e9105c125c9d920d84954d7