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

send_multi: message improvements #15

Closed flackem closed 13 years ago

flackem commented 13 years ago

Hi Sven,

send_multi is too silent when the feeding check_multi has a problem, it only states: WARNING: 0 check_multi child checks submitted

I now look for a ASCIIZ message in STDIN stream and provide this message instead, if there were no successful child checks parsed.

The only thing to get this working is to add a '2>&1' to the check_multi cmdline.

Cheers, -Matthias

sni commented 13 years ago

Hi Matthias,

instead of warning, i would prefer Unknown. Should we change the return code too?

Thanks, Sven

flackem commented 13 years ago

You're pretty right with UNKNOWN, go for it...

-Matthias