Build precise queries to find exactly what you need
Press ESC to close
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
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!