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

mod_gearman_worker not handling wrong plugin returncodes #12

Closed jvigna closed 13 years ago

jvigna commented 13 years ago

Hello,

I updated yesterday to the new 0.9 version and noticed that there is a problem with returning status to nagios in case that a plugin does not respect the return codes (0,1,2,3), because it exits with an error or it does an exit with a returncode > 3. Nagios normally handels this return codes as UNKNOWN, but when executing this checks with mod_gearman_worker they just remain in "not executed" state in Nagios.

sni commented 13 years ago

Nagios sets the state to "critical" in case of unknown exit code. Anyway, let me check that.

jvigna commented 13 years ago

You're obviously right, thanks for your fast reply!

sni commented 13 years ago

I fixed the exit code handling with the latest commit. Could you please try the latest git version?

sni commented 13 years ago

closed