Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Script to verify the NTP client status on ESX hosts.
Current Version
1.0
Last Release Date
2015-04-02
Owner
R. Peters
License
GPL
Compatible With
check_ntpd.ps1
This scripts checks the status of the NTP daemon on a specified ESX host. Status is OK if the NTP client is running, and CRITCAL if not.
Specify the ESX host as an argument to the Powershell script.
--------- Syntax: ---------
check_ntpd.ps1 [IP of ESX host]
-------- Notes: --------
- PowerShell scripts must be allowed to run on the vCenter server (PowerShell Script Execution Policy). - This script uses the VMware.VimAutomation.Core component, which provides cmdlets for automated administration of the vSphere environment. Install VMware vSphere PowerCLI on your vCenter server, if you don't already have it. PowerCLI contains the VMware.VimAutomation.Core component.
---------------------------- Installation instructions: ----------------------------
- Modify the connection settings in the script (vCenter IP, user, password) - Put the Powershell script in the C:Program FilesNSClient++Scripts directory. - In the nsclient.ini file, in the section [/settings/external scripts/scripts], add the following line: check_ntpd=cmd /c echo scripts\check_ntpd.ps1 IP.of.ESX.host; exit $LastExitCode | powershell.exe -command - - Restart the NSClient - On the Nagios server, create a service for the vCenter server with the following check command: check_command check_nrpe!check_ntpd! - Restart Nagios
You must be logged in to submit a review.
To:
From:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!