[op5-users] vSphere and check_esx3.pl
Peter Östlin
peter.ostlin at op5.com
Mon Jul 13 09:45:07 CEST 2009
On Fri, Jul 10, 2009 at 9:33 PM, Joseph L.
Casale<JCasale at activenetwerx.com> wrote:
>>In fact I am also running CentOS 5 with rpmforge perl modules, what
>>syntax are you using?
>>Can you supply the complete command with arguments to check_esx3?
>>Also, are you sure you're able to connect to the server from that host?
>>Can you telnet to the port?
>
> Ok, that's good news! Connectivity is not a problem, this was working on an
> old CentOS5 box with my 3.5u4 servers. Its is exactly as you say, a missing
> dep or something.
>
> So from a bare install of CentOS, I install:
> perl-Crypt-SSLeay
> perl-Nagios-Plugin
>
> Then I install the sdk.
>
> Launching the plugin like this:
> perl /usr/lib/nagios/plugins/contrib/check_esx3.pl -H 192.168.0.24 -u <...> -p <...> -l net -s usage -w 75 -c 99
> as a test, I get the sdk not installed warning, which isn't true?
>
> `perl -MVMware::VIRuntime -e 1` shows:
> Can't locate URI.pm in @INC...
>
> ok...
> `yum whatprovides \*/URI.pm`
> So installing perl-URI and no error now.
No error as in everything is working? You don't get the "Server
version unavailable" error anymore?
> So now I have more progress, any vm with the vmxnet3 nic shows vm-net-usage
> which is a known issue on vmware's side and also this command is a bit odd?
>
> perl /usr/lib/nagios/plugins/contrib/check_esx3.pl -H 192.168.0.24 -u <user> -p <pass> -l vmfs -s DataStore_0 -w 15 -c 10
> CHECK_ESX3.PL CRITICAL - DataStore_0=76817.00 MB (27.45%)
>
> Must be my syntax or a module again that I am missing? Why is it critical?
The plugin support ranges so the above should return critical in that
case. -c 10 is the same as -c 0:10 and we return critical if the
result is outside this range.
http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT
/Peter
More information about the op5-users
mailing list