check_esx3.pl error after upgrading to 5.2

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

check_esx3.pl error after upgrading to 5.2

Post by rajasegar »

Code: Select all

[nagios@nagiosprodxi1 libexec]$ /usr/local/nagios/libexec/check_esx3.pl -H "10.23.18.104" -u root -p 'abc123' -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=4.93 % | cpu_usage=4.93%;70;85
This is the UNKNOWN error that shows up in the GUI

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 7,
Easy to fix.

Change all instances of Nagios::Plugin to Monitoring::Plugin; in check_esx3.pl
Please update at your end. This caused all VMWare monitoring to return UNKNOWN status in our environment.

Thanks.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_esx3.pl error after upgrading to 5.2

Post by lmiltchev »

Actually, it needs to be changed to "Nagios::Monitoring::Plugin". What is the version of the plugin that you are currently using?

Code: Select all

 ./check_esx3.pl -V
Be sure to check out our Knowledgebase for helpful articles and solutions!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: check_esx3.pl error after upgrading to 5.2

Post by ssax »

Thank you for posting this, it's been reported to the developers:

Code: Select all

Task Detail: Nagios XI Bug Report: check_esx3.pl requires Nagios::Plugin
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: check_esx3.pl error after upgrading to 5.2

Post by rajasegar »

lmiltchev wrote:Actually, it needs to be changed to "Nagios::Monitoring::Plugin". What is the version of the plugin that you are currently using?

Code: Select all

 ./check_esx3.pl -V
check_esx3.pl 0.2.0
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: check_esx3.pl error after upgrading to 5.2

Post by rajasegar »

ssax wrote:Thank you for posting this, it's been reported to the developers:

Code: Select all

Task Detail: Nagios XI Bug Report: check_esx3.pl requires Nagios::Plugin
Ok. Please close this case.
Thanks.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
Locked