threshold value in vmware esx3 plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nagarjuna
Posts: 133
Joined: Mon Dec 09, 2013 2:11 am

threshold value in vmware esx3 plugin

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: threshold value in vmware esx3 plugin

Post 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.
Former Nagios employee
nagarjuna
Posts: 133
Joined: Mon Dec 09, 2013 2:11 am

Re: threshold value in vmware esx3 plugin

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: threshold value in vmware esx3 plugin

Post by slansing »

Can you try this?:

Code: Select all

-w 30% -c 50%
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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: threshold value in vmware esx3 plugin

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked