It might be just our environment however I figured I would ask the question here.
I have an application "File Count Script" running against a server. First time doing this so I admit that I am new. Anyways under the "Application Status:" the Application status is up stays while within the past couple of minutes there is an Application Event which shows shows the application going into a critical state. We have the polling as 60 seconds with a timeout of 120 seconds so I am willing to give it a couple of minutes to switch over. The issue is that we are getting 5-15 minutes from the event firing to the status actually changing.
I have a wait time of 5 minutes to allow a person to open a file with the destination, change a few things and close it without the application going into a different state.
The basics regarding the application are straight forward. Here is the script that Solarwinds gives:
Option Explicit
On Error Resume Next
Dim lstArgs, path, fso, objDir, objFiles, objFiles2
Set lstArgs = WScript.Arguments
If lstArgs.Count = 1 Then
path = Trim( lstArgs( 0 ))
Else
WScript.Echo "Message: Usage: wscript.exe filelist.vbs [pathToFiles]" &vbCRLF &"[pathToFiles] Local or UNC Path"
WScript.Echo "Statistic: 0"
WScript.Echo "Message: Usage: wscript.exe filelist.vbs [pathToFiles]" &vbCRLF &"[pathToFiles] Local or UNC Path"
WScript.Echo "Statistic: 0"
WScript.Quit( 1 )
End If
Set fso = Wscript.CreateObject( "Scripting.FileSystemObject" )
If fso.FolderExists( path ) Then
Set objDir = fso.GetFolder( path )
If( IsEmpty( objDir ) = True ) Then
WScript.Echo "Message: Object Not Initialized"
WScript.Echo "Statistic: 0"
WScript.Quit( 1 )
End If
Set objFiles = objDir.Files
If( IsEmpty( objFiles ) = true) Then
WScript.Echo "Message: Object Not Initialized"
WScript.Echo "Statistic: 0"
WScript.Quit( 1 )
End If
WScript.Echo "Message.Total: " & CInt( objFiles.Count ) & " files in this folder."
WScript.Echo "Statistic.Total: " & CInt( objFiles.Count )
Else
WScript.Echo( "Message: Folder Not Found" )
WScript.Echo "Statistic: 0"
WScript.Quit( 1 )
End If
Other than that it's pretty basic. It works in the sense that if I put a new file in the location it will eventually trigger however my issue is with what appears to be a status delay. I do not see anything under Polling Settings, SAM settings or anything like that which could affect this. As you can see by the attachments, Solarwinds is seeing the application go into critical @ 2:44pm, the availability switches at the same time however it does not change the application status until almost 15 minutes after (email timestamp @ 3:00pm).
Thank you for any help on this. I'll try to check over the weekend but will most likely get back on Monday.