Error: (No output on stdout) stderr: Can't locate Monitoring

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
mrvh
Posts: 11
Joined: Wed May 03, 2017 3:23 am

Error: (No output on stdout) stderr: Can't locate Monitoring

Post 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!
Last edited by dwhitfield on Fri May 12, 2017 9:18 am, edited 1 time in total.
Reason: marking with green check mark
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Error: (No output on stdout) stderr: Can't locate Monito

Post 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.
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: Error: (No output on stdout) stderr: Can't locate Monito

Post by tacolover101 »

you need to install the Perl module mentioned in the error -
Monitoring/Plugin/Functions.pm
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Error: (No output on stdout) stderr: Can't locate Monito

Post 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.
mrvh
Posts: 11
Joined: Wed May 03, 2017 3:23 am

Re: Error: (No output on stdout) stderr: Can't locate Monito

Post 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!
mrvh
Posts: 11
Joined: Wed May 03, 2017 3:23 am

Re: Error: (No output on stdout) stderr: Can't locate Monito

Post 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!
mrvh
Posts: 11
Joined: Wed May 03, 2017 3:23 am

Re: Error: (No output on stdout) stderr: Can't locate Monito

Post 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!
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Error: (No output on stdout) stderr: Can't locate Monito

Post 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?
mrvh
Posts: 11
Joined: Wed May 03, 2017 3:23 am

Re: Error: (No output on stdout) stderr: Can't locate Monito

Post 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!
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Error: (No output on stdout) stderr: Can't locate Monito

Post 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.

Code: Select all

yum install perl-Nagios-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.

Code: Select all

check_esx3
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked