THIS KNOWLEDGE BASE HAS BEEN ARCHIVED AND IS NO LONGER BEING UPDATED
Please visit library.nagios.com/docs for the latest and most up-to-date documentation.
Home » Categories » Multiple Categories

VMWare checks timing out or slow

Issue:

If your VMWare checks experience timeouts or are unusually slow, you may be running out of available entropy (available random numbers) on the XI server. These random numbers are necessary for the VMWare Perl SDK to function properly/quickly. Random number generation is expensive in terms of CPU cost, so you can see delays until there are enough random numbers to fulfill the random number request.

You can validate if you are running out of entropy by running the below command when you are experiencing slowness with the check_vmware_api.pl plugin or any other plugin that uses the VMWare Perl SDK:
NOTE: You may need to run it multiple times to catch the issue but the number should not be close to zero.

cat /proc/sys/kernel/random/entropy_avail

If it is close to zero you are likely running out of entropy and you'll need to install a service to fix the system (see below):

NOTE: If you get any errors related to not having a hardware RNG device, you'll need to look at adding a hardware random number generator to the system before rng-tools will work properly:

Feb 10 17:15:04 xxxxx rng-tools[22520]: Starting Hardware RNG entropy gatherer daemon: (Hardware RNG device inode not found)
Feb 10 17:15:04 xxxxx rng-tools[22520]: /etc/init.d/rng-tools: Cannot find a hardware RNG device to use.

Potential Solution:

Run the below commands to solve the available entropy issue:

Currently supported versions of the Enterprise Linux (CentOS/RHEL/Oracle):

sudo yum install rng-tools
sudo systemctl enable rngd
sudo systemctl start rngd

Debian/Ubuntu:

sudo apt install rng-tools
sudo systemctl enable rng-tools
sudo systemctl start rng-tools

After running these commands, run the entropy test again to see if the issue is resolved.



Special Offer For Knowledgebase Visitors! Get a huge discount on Nagios Log Server by clicking below.

Get 60% Off Nagios Log Server!

Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!

1 (2)
Article Rating (2 Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Nagios XI - Can’t Log Into The Web Interface
Viewed 69169 times since Tue, Jan 27, 2015
Nagios XI - Windows Memory Usage - Physical
Viewed 21138 times since Tue, Jan 26, 2016
Nagios XI - Scheduled Backup Log Level
Viewed 7606 times since Tue, Apr 18, 2017
Nagios XI - Scheduled Downtime Not Working
Viewed 9849 times since Mon, Oct 10, 2016
Nagios XI - HTTP 500 Error / White Screen After Login
Viewed 8917 times since Mon, Feb 29, 2016
NRPE - Agent and Plugin Explained
Viewed 78880 times since Fri, Jul 14, 2017
Nagios XI - Host Still Visible After Deletion (Ghost Hosts)
Viewed 14746 times since Tue, Jan 27, 2015
Upgrading EOL Operating Systems on a Nagios System
Viewed 7324 times since Thu, Apr 29, 2021
Nagios XI - Defining Global Environment Variables
Viewed 13275 times since Thu, Mar 17, 2016
Nagios XI - How To Use CA Certificates With check_ldaps Plugin
Viewed 16322 times since Tue, Jul 26, 2016