Page 1 of 1
threshold value in vmware esx3 plugin
Posted: Mon Oct 06, 2014 1:05 pm
by nagarjuna
Dear Team,
We have configured vmware host and we are fine with it. but we need to change the warning and critical value as per our requirement.
Please suggest us.
Re: threshold value in vmware esx3 plugin
Posted: Mon Oct 06, 2014 1:08 pm
by tmcdonald
These values would be changed like any other by going to Configure -> Core Config Manager -> Hosts, and making the appropriate changes for that host.
Re: threshold value in vmware esx3 plugin
Posted: Tue Oct 07, 2014 6:41 am
by nagarjuna
Hi
Default configuration
Testing check from command line...
COMMAND: /usr/local/nagios/libexec/check_esx3.pl -H "152.xx.xxx.xxx" -f "/usr/local/nagiosxi/etc/components/vmware/152_63_2_220_auth.txt" -l "MEM"
OUTPUT: ESX3 OK - mem usage=70989.91 MB (36.11%), overhead=857.33 MB, swapped=0.00 MB | mem_usagemb=70989.91MB;; mem_usage=36.11%;; mem_overhead=857.33MB;; mem_swap=0.00MB;;
I Added warning and crictical values also
/usr/local/nagios/libexec/check_esx3.pl -H "152.xxx.xx.xxx" -f "/usr/local/nagiosxi/etc/components/vmware/152_63_2_220_auth.txt" -l "MEM" -w 30 -c 50
ESX3 OK - mem usage=70987.00 MB (36.11%), overhead=857.60 MB, swapped=0.00 MB | mem_usagemb=70987.00MB;30;50 mem_usage=36.11%;30;50 mem_overhead=857.60MB;30;50 mem_swap=0.00MB;30;50
Still it showing ESX3 ok state
But i need to added warning and critical values
Re: threshold value in vmware esx3 plugin
Posted: Tue Oct 07, 2014 5:07 pm
by slansing
Can you try this?:
Instead of just standard ints? you may also have to specify the value in MB, I've been trying to track this down, there were threshold issues noted back in 2012, did you not set this check up with thresholds in the XI wizard? Did they not come through?:
http://exchange.nagios.org/directory/Pl ... st/details
Re: threshold value in vmware esx3 plugin
Posted: Tue Oct 07, 2014 5:11 pm
by lmiltchev
I believe you need to specify one type (by using a sub-command):
* mem - shows mem info
+ usage - mem usage in percentage
+ usagemb - mem usage in MB
+ swap - swap mem usage in MB
+ overhead - additional mem used by VM Server in MB
+ overall - overall mem used by VM Server in MB
^ all mem info
You can try:
Code: Select all
/usr/local/nagios/libexec/check_esx3.pl -H "152.xxx.xx.xxx" -f "/usr/local/nagiosxi/etc/components/vmware/152_63_2_220_auth.txt" -l "MEM" -s usage -w 30 -c 50