Page 2 of 2

Re: check_mssql_health failed-jobs mode question

Posted: Fri Jul 17, 2015 2:02 am
by d44869
Hello All,

I came across the same error yesterday testing the "failed jobs mode".

Testing the plugin from the command line it turned out STDERR stream is passed to STDOUT hence error messages AND plugin output were returned simultaneously
which eventually puzzled Nagios... and made the check fail.

Workaround:

Go to first line of script and remove the "-w" switch ...

so "#! /usr/bin/perl -w" becomes "#! /usr/bin/perl" ... at least that sorted it for me ...

Good luck,
Marc