Solution: a) A script that is executed when a service or host has a problem
Explanation: A Nagios event handler is a script that is executed when a service or host has a problem. Event handlers can be used to perform additional actions when a problem is detected, such as restarting a service or notifying an external system.