Page 1 of 2
Error: (No output on stdout) stderr: Can't locate Monitoring
Posted: Wed May 03, 2017 3:31 am
by mrvh
Hi,
I meet error with nagios 4. , when i'm monitoring vmware server vsphere 6. I'm install :
- SDK
-PERL
(No output on stdout) stderr: Can't locate Monitoring/Plugin/Functions.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/nagios/libexec/check_esx line 46.
http://imgur.com/MbFFA0Q
help me, please!
Thank all!
Re: Error: (No output on stdout) stderr: Can't locate Monito
Posted: Wed May 03, 2017 11:07 am
by dwhitfield
Can you attach your commands.cfg (or wherever you have your commands)? Also, what message do you get when you run the command from the command line?
You should probably check
https://assets.nagios.com/downloads/nag ... ios-XI.pdf and make sure you have everything installed (substitute the XI-specific stuff for Core).
Also, I know we've had good luck with
https://exchange.nagios.org/directory/P ... re/details, so you might want to check that out instead.
Re: Error: (No output on stdout) stderr: Can't locate Monito
Posted: Wed May 03, 2017 8:03 pm
by tacolover101
you need to install the Perl module mentioned in the error -
Monitoring/Plugin/Functions.pm
Re: Error: (No output on stdout) stderr: Can't locate Monito
Posted: Thu May 04, 2017 9:27 am
by dwhitfield
The VMWare instructions should have taken care of that.
What version of Core are you using? Was it compiled from source or installed from distro repos? On what OS/version is nagios running? cat /etc/*-release may be of use.
Re: Error: (No output on stdout) stderr: Can't locate Monito
Posted: Sun May 07, 2017 1:08 am
by mrvh
Hi all,
I installed vmware monitoring with check_esx3.pl plugin but got the
following error: ESX3 CRITICAL - Server version unavailable at
'
https://221.132.18.252:443/sdk/vimService.wsdl' at / usr / share /
perl5 / VMware / VICommon.pm line 726.
- Nagios core 3.5.1
- VSphere 6.0
-SDK 6.0
Help me please
thank you!
Re: Error: (No output on stdout) stderr: Can't locate Monito
Posted: Sun May 07, 2017 10:17 pm
by mrvh
I installed vmware monitoring with check_esx3.pl plugin but got the following error: ESX3 CRITICAL - Server version unavailable at '
https://xx.xx.xx.xx:443/sdk/vimService.wsdl' at / usr / share / perl5 / VMware / VICommon.pm line 726. - Nagios core 3.5.1 - VSphere 6.0 -SDK 6.0
http://imgur.com/TPQUFUt
http://imgur.com/YRS9UxC
http://imgur.com/wXS6HaU
http://imgur.com/wqMFhP6
http://imgur.com/qoeIsnX
Help me please thank you!
Re: Error: (No output on stdout) stderr: Can't locate Monito
Posted: Mon May 08, 2017 8:02 am
by mrvh
Hi all,
I fixed the above error due to missing plugin, but encountered a new error:
ESX3 CRITICAL - Server version unavailable at '
https://221.132.18.252:443/sdk/vimService.wsdl' at / usr / share / perl5 / VMware / VICommon.pm line 726.
I installed vmware monitoring with check_esx3.pl plugin
- Nagios core 3.5.1
- VSphere 6.0 -SDK 6.0
- centos 6.9
Help me please thank you!
Re: Error: (No output on stdout) stderr: Can't locate Monito
Posted: Mon May 08, 2017 11:39 am
by dwhitfield
In the future, it would be helpful if you posted text output into a code block rather than an image.
You are using -H on the command line, but -D in your command in the .cfg. Do you get the same error if you use -H in the command in the .cfg?
What's the output if you use -D on the command line?
Re: Error: (No output on stdout) stderr: Can't locate Monito
Posted: Mon May 08, 2017 8:34 pm
by mrvh
dwhitfield wrote:In the future, it would be helpful if you posted text output into a code block rather than an image.
You are using -H on the command line, but -D in your command in the .cfg. Do you get the same error if you use -H in the command in the .cfg?
What's the output if you use -D on the command line?
Hi dwhitfield,
I changed from option D to H but it still does:
Code: Select all
define command{
command_name check_vmware_cpu
command_line /usr/bin/perl $USER1$/check_esx3 -H $HOSTADDRESS$ -u $USER3$ -p $USER4$ -l CPU
}
Code: Select all
ESX3 CRITICAL - Server version unavailable at 'https://221.132.18.252:443/sdk/vimService.wsdl' at /usr/share/perl5/VMware/VICommon.pm line 726.
I made the chek command with the plugin check_vmware_esx3.pl is still normal
thank!
Re: Error: (No output on stdout) stderr: Can't locate Monito
Posted: Tue May 09, 2017 12:38 pm
by tgriep
Can you upgrade the plugin to version 0.7.1 and see if that fixes the error on your server?
Sometimes the older version of that plugin has issues with VMWare and upgrading the plugin solved the issue.
First, login to the Nagios server as root and make a backup of the existing one by running the following.
Code: Select all
cp /usr/local/nagios/libexec/check_esx3 /usr/local/nagios/libexec/check_esx3.old
Then run the following to install a required Perl Module for the new plugin.
Then download this updated plugin to your Nagios server and put it in folder the existing plugin is located in.
https://github.com/shinken-monitoring/p ... ck_esx3.pl
Make sure you name the plugin to the same name as the command definition.
After it is downloaded, you will have to change the owner / permissions of the plugin by running the following
Code: Select all
chown nagios.nagios /usr/local/nagios/libexec/check_esx3
chmod a+x /usr/local/nagios/libexec/check_esx3
Wait until the server schedules and runs the check and see if the error is gone in the Nagios GUI.