sni / mod_gearman

Distribute Naemon Host/Service Checks & Eventhandler with Gearman Queues. Host/Servicegroups affinity included.
http://www.mod-gearman.org
GNU General Public License v3.0
122 stars 42 forks source link

execute_safe_command should respect timeout_return #64

Closed jssjr closed 10 years ago

jssjr commented 10 years ago

This fixes an issue where a command run by execute_safe_command() would timeout and the return code would be set to 2 (CRITICAL) rather than respecting the user defined timeout_return value set in the configuration.

I've tested this in production and confirmed the behavior matches what's expected.

sni commented 10 years ago

thanks