Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
I made the following change to no longer be rounding the numbers a point lower to 1. Do not round numbers
for /f “tokens=*” %%t in (‘w32tm /stripchart /computer:%time_server% /samples:1 /dataonly’) do set output=%%t
if not “x%output:0x80072af9=%”==”x%output%” goto host_error if not “x%output:0x800705B4=%”==”x%output%” goto comm_error if not “x%output:error=%”==”x%output%” goto unknown_error if not “x%output:)=%”==”x%output%” goto unknown_error
set time_org=%output:*, =% set time=%time_org% rem set time=%time_org:~1,-9%