Page 1 of 1

esxi monitoring pulls MHZ instead of percentation for CPU

Posted: Thu Jul 16, 2020 9:52 am
by rnjie
is there a way to see if we can stop pulling MHz and only percentage for our esxi hosts for cpu? If you look at the attachment, you see that the blue line is MHz and the green line is percentage. I would like to only see the green line which is in percentage. this is the article i used to configure monitoring esxi hosts https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Re: esxi monitoring pulls MHZ instead of percentation for CP

Posted: Fri Jul 17, 2020 10:03 am
by benjaminsmith
Hi,

Looking over the plugin info, the default option will post both values, but you can filter this down using the -s subcommand option.
* cpu - shows cpu info
+ usage - CPU usage in percentage
+ usagemhz - CPU usage in MHz
^ all cpu info
Go to the Configure > CCM, and find the service and modify the arguments for this check,so it looks like the following:

Code: Select all

check_vmware_api.pl -H "IP ADDRESS" -f "/usr/local/nagiosxi/etc/components/vmware/Nagios_VMware_Wizard_auth.txt" -l "CPU" -s "usage"
Let me know if that works for you. Also, if you do not want to impact the previous graph, I would copy the existing service and start a new one.

Reference:
Using The Core Config Manager For Service Management

Re: esxi monitoring pulls MHZ instead of percentation for CP

Posted: Fri Jul 17, 2020 2:09 pm
by rnjie
am not sure how am supposed to add the flag because when i do i get errors, please see screenshot below of how its currently setup, i even tried with the quotes and same, the error am getting seems like the flag is not written right or something

Re: esxi monitoring pulls MHZ instead of percentation for CP

Posted: Fri Jul 17, 2020 4:40 pm
by benjaminsmith
Hi,

Try adding -s "usage" in the $ARG3$ field, then run the test command and let me know if that works for you.

Benjamin

Re: esxi monitoring pulls MHZ instead of percentation for CP

Posted: Wed Jul 22, 2020 8:37 am
by rnjie
that worked but i still see both MHZ and Percentage

Re: esxi monitoring pulls MHZ instead of percentation for CP

Posted: Wed Jul 22, 2020 3:01 pm
by benjaminsmith
that worked but i still see both MHZ and Percentage
Ok. Can you post a screenshot? Is it still plotting both or only the percentage value?

Re: esxi monitoring pulls MHZ instead of percentation for CP

Posted: Fri Jul 31, 2020 3:45 pm
by rnjie
thanks i see only the pecentage now, but after some time the graph no longer shows, how can i regenerate a new graph without having to delete and re-add the service? see screenshot below

Re: esxi monitoring pulls MHZ instead of percentation for CP

Posted: Mon Aug 03, 2020 1:29 pm
by benjaminsmith
Hi,

When the performance data changes format, it will likely not process the incoming data correctly, you can delete the existing performance data files and they should be recreated after about 15 minutes with valid data and start graphing for you. The files are store in the following folder:

Code: Select all

/usr/local/nagios/share/perfdata/<hostname>/
Delete the .xml and .rrd files and within 15 minutes, it will be recreated with valid data.