how to set warning and critical thresholds for CPU VMWare?
how to set warning and critical thresholds for CPU VMWare?
I started monitoring VMware ESX 6.0 host and it's now working successfully. However, I am not sure how to set the threshold for warning and critical alerts in the GUI in Core Config Manager. Let's say I wanted to alert warning at 85% CPU and to alert critical at 90%.
How would I do it?
You do not have the required permissions to view the files attached to this post.
-
avandemore
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: how to set warning and critical thresholds for CPU VMWar
If you run:
You will see the built-in help for the plugin. You will notice it supports -w and -c arguments with thresholds described at http://nagiosplug.sourceforge.net/devel ... HOLDFORMAT
So you would need to add that in as needed to your plugin or service definition.
Code: Select all
# /usr/local/nagios/libexec/check_esx3.pl -hSo you would need to add that in as needed to your plugin or service definition.
Previous Nagios employee
Re: how to set warning and critical thresholds for CPU VMWar
So to warn above 85% and for critical above 90%, would this be correct?

You do not have the required permissions to view the files attached to this post.
Re: how to set warning and critical thresholds for CPU VMWar
Doesn't look like that works. I did -w 4 -c 5, so it should alert if it's above 5%. But it's not alerting:
You do not have the required permissions to view the files attached to this post.
Re: how to set warning and critical thresholds for CPU VMWar
It could be that is you do not specify a sub command, it ignores the threshold settings.
If you want to generate an alert if the CPU usage if too high, add the following to $ARG3$
To specify usage as the subcommand and the thresholds will be used.
If you want to generate an alert if the CPU usage if too high, add the following to $ARG3$
Code: Select all
-s usageCode: Select all
* cpu - shows cpu info
+ usage - CPU usage in percentage
o quickstats - switch for query either PerfCounter values or Runtime info
+ usagemhz - CPU usage in MHz
o quickstats - switch for query either PerfCounter values or Runtime info
^ all cpu info
o quickstats - switch for query either PerfCounter values or Runtime infoBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: how to set warning and critical thresholds for CPU VMWar
Yes, that was it. Now it works.
Re: how to set warning and critical thresholds for CPU VMWar
That is good news. If you don't have any questions, shall I close and lock the post for you?
Be sure to check out our Knowledgebase for helpful articles and solutions!