Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
supportex.net
bysupportex.net, June 24, 2015
Script may be used to compare sub=seconds offsets but it should be patched for correct work:
1) SetLocale("en-us") should be added as mentioned above
2) Abs() should be used then comparing, around 75th line:
If result = "" Then
Err = 3
Status = "UNKNOWN"
ElseIf Abs(result) > Abs(crit) Then
Err = 2
status = "CRITICAL"
ElseIf Abs(result) > Abs(warn) Then
Err = 1
status = "WARNING"
Else
Err = 0
status = "OK"
End If
1) SetLocale("en-us") should be added as mentioned above
2) Abs() should be used then comparing, around 75th line:
If result = "" Then
Err = 3
Status = "UNKNOWN"
ElseIf Abs(result) > Abs(crit) Then
Err = 2
status = "CRITICAL"
ElseIf Abs(result) > Abs(warn) Then
Err = 1
status = "WARNING"
Else
Err = 0
status = "OK"
End If