Page 1 of 3

vmware swap file error

Posted: Mon Feb 17, 2014 9:16 am
by sheetzdw
HGB of RAMI Guys - I am new to Nagios and the first thing I need to learn is how to find what an alert is looking for...example

I get an alert VMWare swap usage -check ESX3 Critical - Swap Usage is 321.57 MB

on this VM host I have 196 GB of RAM

most of the RAM is used 100% of the time

not sure where this comes from, each machine has its own swapfile and there is room for more swap usage

any ideas ?

Re: vmware swap file error

Posted: Mon Feb 17, 2014 11:56 am
by slansing
You can start by looking at the check plugin you set up for your host/service. We recommend you at least look at the full usage output of a plugin before using it so you understand what you are asking it to query. In your case, I would check to see what thresholds you have set for your swap check on that host, and also look to see what that is actually running in the plugin you chose to use. If the memory is in almost 100% usage you could very well be running into swapping issues, that is something you and your system admins should look into.

Re: vmware swap file error

Posted: Mon Feb 17, 2014 2:55 pm
by sheetzdw
does this help? not sure what this is telling

Modify checkcommand
check command name check_esx3

check command line:
$USER1$/check_esx3 -H $HOSTADDRESS$ -u $USER11$ -p $USER12$ $ARG1$


I found some info here but still not sure where the threshold is set

http://exchange.nagios.org/directory/Pl ... st/details

Re: vmware swap file error

Posted: Mon Feb 17, 2014 2:59 pm
by tmcdonald
Do you mean the Warning and Critical thresholds? Those should just be set in $ARG1$ by the looks of it. Something like "-w 80 -c 90".

Re: vmware swap file error

Posted: Mon Feb 17, 2014 4:01 pm
by sheetzdw
forgive the newbie question but I dont see where the args are set...where do I set the args?

Re: vmware swap file error

Posted: Mon Feb 17, 2014 5:05 pm
by lmiltchev
This would be set in your service definition. Can you show us how the Swap Usage check is defined?

Re: vmware swap file error

Posted: Mon Feb 17, 2014 5:49 pm
by sheetzdw
ooo I found it in advanced services

-l mem -s swap -w 90 -c 95


but what should it be? vmware shows a swap for each vm server stored on the datastore with the server vmdk so I dont see a problem...
or know where I should set the limit to..

then , correct me if I am wrong, if I change it I need to rebuild the Nagios config and copy it over correct?
so maybe

-l mem -s swap -w 900 -c 950 ???

Re: vmware swap file error

Posted: Tue Feb 18, 2014 11:55 am
by lmiltchev
Just change the thresholds (-w 90 -c 95) to whatever you want them to be, and restart nagios:

Code: Select all

service nagios restart
or

Code: Select all

/etc/init.d/nagios restart

Re: vmware swap file error

Posted: Tue Feb 18, 2014 12:15 pm
by sheetzdw
service nagios restart
Running configuration check... CONFIG ERROR! Restart aborted. Check your Nagios configuration.


gawd I hate Linux commands so prehistoric!
LOL

i made some changes to nagios in nconf and generated a new config

now I gotta figure out how to copy the new config file over then restart Nagios!

UGH!

Re: vmware swap file error

Posted: Tue Feb 18, 2014 2:00 pm
by tmcdonald
Please run the following and post the output:

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg