It was the redirected to the external gearman worker. Was getting errors so decided to revert back to local gearman worker.
However this error does not go away anymore.
From command line it works fine. Just when using gearman it screws up.
Please assist as all our vmware monitoring is down now.
From Command Line
Code: Select all
/usr/local/nagios/libexec/check_esx3.pl -H "10.17.12.20" -u "root" -p 'test!' -l "CPU" ""-s usage"" -w "70%" -c "85%" "" ""
Nagios::Plugin is deprecated, use Monitoring::Plugin instead. at /usr/local/share/perl5/Nagios/Plugin/Functions.pm line 14
ESX3 OK - cpu usage=42.90 % | cpu_usage=42.90%;70;85From Gearman Execution. It is using integrated Perl interpreter
Code: Select all
**ePN failed to compile /usr/local/nagios/libexec/check_esx3.pl: "Nagios::Plugin is deprecated, use Monitoring::Plugin instead. at /usr/local/share/perl5/Nagios/Plugin/Functions.pm line 14
BEGIN failed--compilation aborted at /usr/local/share/perl5/Nagios/Plugin/Functions.pm line 7,
Compilation failed in require at /usr/local/share/perl5/Nagios/Plugin.pm line 5.
BEGIN failed--compilation aborted at /usr/local/share/perl5/Nagios/Plugin.pm line 5.
Compilation failed in require at (eval 1) line 40.
BEGIN failed--compilation aborted at (eval 1) line 40." at /usr/share/mod_gearman/mod_gearman_p1.pl line 240.Code: Select all
[nagios@nagiosprodcol1 debug]$ vi /usr/local/share/perl5/Nagios/Plugin/Functions.pm
package Nagios::Plugin::Functions;
use strict;
use warnings;
use base 'Monitoring::Plugin::Functions';
# Remember to update Nagios::Plugins as well
our $VERSION = "0.37";
BEGIN {
warnings::warnif("deprecated", "Nagios::Plugin is deprecated, use Monitoring::Plugin instead.")
unless $Monitoring::Plugin::deprecated_warned;
$Monitoring::Plugin::deprecated_warned = 1;
};
our @STATUS_CODES = qw(OK WARNING CRITICAL UNKNOWN DEPENDENT);
Please advice how to fix this problem.