ActiveXperts Network Monitor ships with a powerful set of pre-defined checks. Each individual check has a static number of configuration items. To monitor other items, or to combine monitoring items, you can make use of custom PowerShell checks.
Most of the built-in checks have a PowerShell equivalent, implemented as a PowerShell (.ps1) script file. Out-of-the-box, each PowerShell script monitors the same items as the built-in check. Feel free to modify the script.
To add a new PowerShell-based Ntp monitoring check, do the following:
- On the 'Monitor menu', open 'New Monitoring Check (Script)' and choose 'New PowerShell Check'. The 'PowerShell Check' dialog box appears;
- In the 'Script File' selection box, select 'ntp.ps1';
- In the 'Script Parameters'group box enter the required parameters. You can also load a working sample first by clicking on the 'Click here to load a sample' link.
To customize the above monitoring check, click on the 'Edit button' next to the 'Script File' selection box. Notepad will be launched. You can now make changes to the PowerShell script.

Ntp.ps1 script source code
################################################################################# # ActiveXperts Network Monitor PowerShell script, (c) ActiveXperts Software B.V. # For more information about ActiveXperts Network Monitor, visit the ActiveXperts # Network Monitor web site at https://www.activexperts.com ################################################################################# # Script # Ntp.ps1 # Description: # Query a time server. # This function uses the ActiveXperts Network Component, an ActiveXperts product. # ActiveXperts Network Component is automatically licensed when ActiveXperts # Network Monitor is purchased # For more information about ActiveXperts Network Component, see: # www.activexperts.com/network-component # Parameters: # 1) strHost - Specifies the remote NTP server # Usage: # .\NTP '<Hostname | IP>' # Sample: # .\NTP 'ntp.activexperts-labs.com' ################################################################################# # Parameters param ( [string]$strHost ) cls # Check paramters input if ( [string]$strHost -eq "" ) { $res = "UNCERTAIN: Invalid number of parameters - Usage: .\ntp.ps1 <hostname>" echo $res exit } ################################################################################# # THE SCRIPT ITSELF ################################################################################# $objNtp = new-object -comobject ActiveXperts.Ntp $objNtp.GetTime($strHost) if ($objNtp.LastError -ne 0) { $res = "ERROR #" + $objNtp.LastError + ": " + $objNtp.GetErrorDescription( $objNtp.LastError ) + " DATA: 0" } else { $res = "SUCCESS: NTP server queried, Result: " + (Get-date -y $objNtp.Year -mo $objNtp.Month -day $objNtp.Day) + " " + (Get-Date -h $objNtp.Hour -mi $objNtp.Minute -s $objNtp.Second -displayhint time) + "; time-difference: " + $objNtp.LocalOffsetSeconds + " seconds DATA: " + $objNtp.LocalOffsetSeconds } Write-Host $res