vCenter Monitong with vmware wizard
Posted: Fri Jul 13, 2012 8:20 am
Hi,
I’ve used vmware wizard (http://exchange.nagios.org/directory/Ad ... rd/details) to configure the monitoring for vm-host/guest and it works great. I couldn’t use the same for vCenter monitoring, as there is no option to select vCenter from the wizard. I tried from command line. The help shows I can monitor the following for vCenter
DC specific :
* io - shows disk io info
+ aborted - aborted commands count
+ resets - bus resets count
+ kernel - kernel latency in ms
+ device - device latency in ms
+ queue - queue latency in ms
* vmfs - shows Datastore info
+ (name) - info for datastore with name (name)
^ all datastore info
* runtime - shows runtime info
+ list(vm) - list of VMWare machines and their statuses
+ listhost - list of VMWare esx host servers and their statuses
* recommendations - shows recommendations for cluster
+ (name) - recommendations for cluster with name (name)
^ all clusters recommendations
I’ve got outpuut for "io"
./check_esx3.pl -D <hostname> -f /usr/local/nagiosxi/etc/components/vmware/<host>_auth.txt -l io
ESX3 OK - io commands aborted=0, io bus resets=0, io read latency=0 ms, write latency=0 ms, kernel latency=0 ms, device latency=0 ms, queue latency=0 ms | io_aborted=0;; io_busresets=0;; io_read=0ms;; io_write=0ms;; io_kernel=0ms;; io_device=0ms;; io_queue=0ms;;
I’ve got the following error for "runtime" and "vmfs"
./check_esx3.pl -D <hostname> -f /usr/local/nagiosxi/etc/components/vmware/<host>_auth.txt -l runtime
ESX3 CRITICAL - Can't call method "val" on an undefined value at ./check_esx3.pl line 2462. | vmcount=40units;;
./check_esx3.pl -D <hostname> -f /usr/local/nagiosxi/etc/components/vmware/<host>_auth.txt -l vmfs
ESX3 CRITICAL - Can't use an undefined value as an ARRAY reference at ./check_esx3.pl line 2184.
I want to monitor all the data stores and the status of all vm hosts in the vCentre. May I know the recommended plugin to do this?
Thanks
Mukunthini
I’ve used vmware wizard (http://exchange.nagios.org/directory/Ad ... rd/details) to configure the monitoring for vm-host/guest and it works great. I couldn’t use the same for vCenter monitoring, as there is no option to select vCenter from the wizard. I tried from command line. The help shows I can monitor the following for vCenter
DC specific :
* io - shows disk io info
+ aborted - aborted commands count
+ resets - bus resets count
+ kernel - kernel latency in ms
+ device - device latency in ms
+ queue - queue latency in ms
* vmfs - shows Datastore info
+ (name) - info for datastore with name (name)
^ all datastore info
* runtime - shows runtime info
+ list(vm) - list of VMWare machines and their statuses
+ listhost - list of VMWare esx host servers and their statuses
* recommendations - shows recommendations for cluster
+ (name) - recommendations for cluster with name (name)
^ all clusters recommendations
I’ve got outpuut for "io"
./check_esx3.pl -D <hostname> -f /usr/local/nagiosxi/etc/components/vmware/<host>_auth.txt -l io
ESX3 OK - io commands aborted=0, io bus resets=0, io read latency=0 ms, write latency=0 ms, kernel latency=0 ms, device latency=0 ms, queue latency=0 ms | io_aborted=0;; io_busresets=0;; io_read=0ms;; io_write=0ms;; io_kernel=0ms;; io_device=0ms;; io_queue=0ms;;
I’ve got the following error for "runtime" and "vmfs"
./check_esx3.pl -D <hostname> -f /usr/local/nagiosxi/etc/components/vmware/<host>_auth.txt -l runtime
ESX3 CRITICAL - Can't call method "val" on an undefined value at ./check_esx3.pl line 2462. | vmcount=40units;;
./check_esx3.pl -D <hostname> -f /usr/local/nagiosxi/etc/components/vmware/<host>_auth.txt -l vmfs
ESX3 CRITICAL - Can't use an undefined value as an ARRAY reference at ./check_esx3.pl line 2184.
I want to monitor all the data stores and the status of all vm hosts in the vCentre. May I know the recommended plugin to do this?
Thanks
Mukunthini