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
Hi! great script!
a couple of things:
1) the line (near the end):
Wscript.Echo “NTP ” & status & “: Offset ” & result & ” secs|’offset’=” & result & “s;” & warn & “;” & crit & “;”
should be changed in:
Wscript.Echo “NTP ” & status & “: Offset ” & result & ” secs|offset=” & result & “s;” & warn & “;” & crit & “;”
so the performance data can processed by pnp4nagios addon.
2) I think there’s a problem with warning and critical thresholds… arguments must contain + and – signs…
for example, this works: cscript.exe //T:30 //NoLogo scriptscheck_time.vbs 10.65.0.100 +5 +10 NTP CRITICAL: Offset +62.0905029 secs|offset=+62.0905029s;+5;+10;
this doesn’t: cscript.exe //T:30 //NoLogo scriptscheck_time.vbs 10.65.0.100 5 10 NTP OK: Offset +62.0866201 secs|offset=+62.0866201s;5;10;
best regards, Federico