I have a vb scipt that checks our Exchange server Mailbox Database file size. When it is run on the PRTG server from a command line it works, but when run from within PRTG as a custom sensor it fails.
If I modify the script to check a file on the local PRTG server is works fine within PRTG
Here's the script:
strFile = "
HWW032\D$\Program Files (x86)\Microsoft\Exchange Server\Mailbox\First Storage Group\Mailbox Database.edb"
set objFSO = createobject("Scripting.FileSystemObject") set objFile = objFSO.GetFile(strFile)
wscript.echo clng(objFile.Size / 1024000) & ":OK"
WScript.Quit("0")
Your help would be greatly appreciated.
Add comment