VMware plugin - Test check works but service fails

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
JulianFDRacing
Posts: 51
Joined: Tue Oct 16, 2012 9:45 am

VMware plugin - Test check works but service fails

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: VMware plugin - Test check works but service fails

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
JulianFDRacing
Posts: 51
Joined: Tue Oct 16, 2012 9:45 am

Re: VMware plugin - Test check works but service fails

Post 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?
JulianFDRacing
Posts: 51
Joined: Tue Oct 16, 2012 9:45 am

Re: VMware plugin - Test check works but service fails

Post 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...
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: VMware plugin - Test check works but service fails

Post by lmiltchev »

I'm glad this is resolved now! Let us know if you have any more issues.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked