Page 1 of 1

VMware plugin - Test check works but service fails

Posted: Wed Jan 09, 2013 7:01 pm
by JulianFDRacing
When run from shell

Code: Select all

[root@nagiosxi-64 nagiosxi]# /usr/local/nagios/libexec/check_vmware.pl --config=/usr/local/nagios/libexec/check_vmware_config_amsesx1 --timeout 30 --server=10.0.200.10 --report=cpu --mode=nagios --warn=80 --crit=90
CRIT: CPU usage at 80758118.98% (need more CPU allocation?)|cpu=80758118.99%;80;90;0;100
[root@nagiosxi-64 nagiosxi]#
Service check results in NagiosXI

Code: Select all

UNKNOWN: Login to VirtualCentre server failed: Server version unavailable at 'https://ascribe-esx1.int.ascribe.com:443/sdk/vimService.wsdl' at /usr/share/perl5/VMware/VICommon.pm line 545.
Result of testing the check in NagiosXI

Code: Select all

COMMAND: /usr/local/nagios/libexec/check_vmware.pl --config=/usr/local/nagios/libexec/check_vmware_config_amsesx1 --timeout 30 --server=10.0.200.10 --report=cpu --mode=nagios --warn=80 --crit=90    
OUTPUT: CRIT: CPU usage at 80763527.01% (need more CPU allocation?)|cpu=80763527.01%;80;90;0;100
This check works fine on x86 version but this is on x64 with freshly installed plugin, if that gives any clues, perms are the same on both servers, ran an upgrade to latest version of XI before and after VMWare cli modules with same results

Re: VMware plugin - Test check works but service fails

Posted: Thu Jan 10, 2013 5:23 pm
by scottwilkerson
What version of the SDK did you download?

I presume also, 80758118.98% CPU usage isn't accurate...

Could be related to this..
http://support.nagios.com/forum/viewtop ... 872#p26872

Re: VMware plugin - Test check works but service fails

Posted: Thu Jan 10, 2013 7:03 pm
by JulianFDRacing
scottwilkerson wrote:What version of the SDK did you download?

VMware-vSphere-CLI-5.1.0-780721.x86_64.tar.gz

I presume also, 80758118.98% CPU usage isn't accurate...

Think that's a whole new issue with the SDK

Could be related to this..
http://support.nagios.com/forum/viewtop ... 872#p26872
Gone through it just in case but disabled SSL checking and although the check works from the ccm service config test dialog and cli it doesn't during a scheduled check, why would it work on two tests and not as a normal check? Its not as it we have issues with escaping characters etc?

Re: VMware plugin - Test check works but service fails

Posted: Thu Jan 10, 2013 7:15 pm
by JulianFDRacing
Think I have found it and its completely unrelated, the host name resolution on the check is failing but getting a response from a internet dns server, just need to disable network manager so resolv.conf changes stick...

Re: VMware plugin - Test check works but service fails

Posted: Fri Jan 11, 2013 11:20 am
by lmiltchev
I'm glad this is resolved now! Let us know if you have any more issues.