vmware esx5.5 monitoring wizard

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
plataformamc3
Posts: 11
Joined: Wed Jul 03, 2013 2:56 am

vmware esx5.5 monitoring wizard

Post by plataformamc3 »

Good evening!
I am try to monitoring several esx5.5 servers using check_vmware.pl script by Steve Shipway.
I have installed the pluging requirements as NagiosXI shows. User and group for both check_vmware.pl and check_vmware_config_vcenter01 are nagios, nagios.
I have installed VMware-vSphere-Perl-SDK-5.5.0--1384587.i386.tar.gz.
Althoug it seems that perl is well installed, when I try to execute check_vmware.pl, nagiosxi shows a message like that:

check_vmware.pl : /usr/bin/perl^M bad interpreter

Could somebody help me?

Thank you so much.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: vmware esx5.5 monitoring wizard

Post by tmcdonald »

Easy fix. You probably copied this from a Windows system, and Windows likes to add weird characters to files sometimes:

http://stackoverflow.com/questions/1940 ... -using-sed
Former Nagios employee
plataformamc3
Posts: 11
Joined: Wed Jul 03, 2013 2:56 am

Re: vmware esx5.5 monitoring wizard

Post by plataformamc3 »

Thank you!!
Check_vmware.pl works but now I´ve an error with nagios services

UNKNOWN: Login to virtualcentre server failed: server version unavailable at ' https://srv-vcenter.xxxxxx:443/sdk/vimservice.wsdl' at /usr/local/share/prl5/vmware/vicommon.pm line 545

VCenter is on W2012 R2. Doesn´t this pluging work on 2012?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: vmware esx5.5 monitoring wizard

Post by sreinhardt »

Actually, that error is saying that your login failed. From what I recall, you must use a local user and not an Active Directory user for all vmware checks presently. Might that be the issue?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked