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.
threshold value in vmware esx3 plugin
Re: threshold value in vmware esx3 plugin
These values would be changed like any other by going to Configure -> Core Config Manager -> Hosts, and making the appropriate changes for that host.
Former Nagios employee
Re: threshold value in vmware esx3 plugin
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
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
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: threshold value in vmware esx3 plugin
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
Code: Select all
-w 30% -c 50%
http://exchange.nagios.org/directory/Pl ... st/details
Re: threshold value in vmware esx3 plugin
I believe you need to specify one type (by using a sub-command):
You can try:* 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
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 50Be sure to check out our Knowledgebase for helpful articles and solutions!