Add callbacks for HOSTDOWNTIME and SERVICEDOWNTIME macros

Hi,

This is a patch for the issue #1409.