Host check error localtime_r when Icinga2 is restarted


For some reason whenever I restart Icinga2 a random selection of my hosts will immediately go into a Down state with the following error:

Exception occurred while checking ‘hostname.domain’: Error: Function call ‘localtime_r’ failed with error code 75, ‘Value too large for defined data type’
(0) Executing check for object ‘hostname.domain’

This behavior didn’t occur when we were on an older version. To try to eliminate the host as a problem I built another master with the latest version and the issue persisted. The host check is via the check_ping Nagios plugin.

Has anyone ran into this issue? Searching around I can’t seem to find anyone referencing this error with Icinga.

(Michael Friedrich) #2

A little more details on your environment (distribution, version, icinga2 --version, etc.) would certainly help to mitigate the issue.


Most of the info should be below in the version output. Our operation is small so we only have a single server acting as the master which also has the Icinga Web 2 (2.6.2) and Icinga Director (1.5.2) modules set up on it.

1 vCPU
224 Hosts
645 Services

Most of our checks are using NRPE, SNMP, or pings.

icinga2 - The Icinga 2 network monitoring daemon (version: r2.10.2-1)

Copyright © 2012-2018 Icinga Development Team (
License GPLv2+: GNU GPL version 2 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

System information:
Platform: CentOS Linux
Platform version: 7 (Core)
Kernel: Linux
Kernel version: 3.10.0-957.1.3.el7.x86_64
Architecture: x86_64

Build information:
Compiler: GNU 4.8.5
Build host: unknown

Application information:

General paths:
Config directory: /etc/icinga2
Data directory: /var/lib/icinga2
Log directory: /var/log/icinga2
Cache directory: /var/cache/icinga2
Spool directory: /var/spool/icinga2
Run directory: /run/icinga2

Old paths (deprecated):
Installation root: /usr
Sysconf directory: /etc
Run directory (base): /run
Local state directory: /var

Internal paths:
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/