Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Directory

jonathanbaird

Reviews(1)
check_vmfs.sh - Check vmfs datastores through VMware VCLI
Hi,

I am really struggling to get this to work. I am getting the following error.

CRITICAL - /usr/local/nagios/libexec/check_vmfs.sh: 161: /usr/local/nagios/libexec/check_vmfs.sh: --username: not found

Below are my configs...

define service{
use generic-service
host_name AIT-VM01
service_description Datastore1 Space
check_command check_vmfs.sh!vmware_esxi_conf.txt!10.10.10.6!/vmfs/volumes/datastore1!80!90!Gb
}

define command{
command_name check_vmfs.sh
command_line $USER1$/check_vmfs.sh -C ./$ARG1$ -S $ARG1$ -V $ARG2$ -w $ARG3$ -c $ARG4$ -u $ARG5$
}

I have got vmware_esxi_conf.txt in /usr/local/nagios/libexec. The contents of this file are below...

10.10.10.6 root password

I have installed all the dependencies and cannot get this to work, any ideas?