Werk #3227: Automatic service adding: Fixed exception when using time range to skip automatic configuration

Component Checks & agents
Title Automatic service adding: Fixed exception when using time range to skip automatic configuration
Date Feb 22, 2016
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
1.4.0i1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.4.0i1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.4.0i1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.4.0i1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.4.0i1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.4.0i1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.4.0i1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.4.0i1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.2.8b3 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

This fixes the exception:

Traceback (most recent call last):
  File "/omd/sites/stable/share/check_mk/modules/check_mk.py", line 5065, in <module>
    discover_marked_hosts()
  File "/omd/sites/stable/share/check_mk/modules/discovery.py", line 441, in discover_marked_hosts
    why_not = may_rediscover(params)
  File "/omd/sites/stable/share/check_mk/modules/discovery.py", line 389, in may_rediscover
    now = datetime.datetime.utcfromtimestamp(now_ts)
NameError: global name 'datetime' is not defined

To the list of all Werks