Hi
I am new to SolarWinds and would appreciate some help pls. We are trying use TreeSize Pro with SAM, so when a volume reaches say 90% it will run treesize report and possibly email this. I tried to follow the step in the following post, but still not having any luck
https://thwack.solarwinds.com/t5/Server-Application-Monitor-SAM/What-is-filling-my-volume/idi-p/570256
In Summary
1. TreeSize Pro 7.1 is installed on the Main Solarwinds Server
2. I have alert that will monitor the volume and trigger if it reaches 90% and this is working i have an action that will email me. so this proves the alert is working
3. I used the above link and added an action to execute a program which is setup as command to run
C:\Windows\System32\cmd.exe /C C:\Temp\TreeSize1.bat ${SQL:Select '\\' + n.IP_Address + '\' + (select substring(v.caption,1,1)) from Volumes v join nodes n on v.nodeid=n.nodeid where v.volumeid=${VolumeID}} ${Node.Caption} "${Fullname}" "${VolumePercentUsed}"
The batch file is setup as
"c:\Program Files\JAM Software\TreeSize\TreeSize.exe" /HTML "C:\Temp\%2.HTML" %1$
** Please note i am not using blat as i could not get this to work so i thought i woudl just try the creating of the treesize file
So this is what i tried to check this
I use the alert manager to simulate the trigger on a volume and i can see on the server treesize is running but then after a few seconds it stops and nothing happens
To troubleshooting further i changed the batch file to be c:\ instead of %1$ and it worked so it created a HTML file with the server name but of the c:\
"c:\Program Files\JAM Software\TreeSize\TreeSize.exe" /HTML "C:\Temp\%2.HTML" c:\
The above makes me think the issue is with execution line as it does not pickup the drive
C:\Windows\System32\cmd.exe /C C:\Temp\TreeSize1.bat ${SQL:Select '\\' + n.IP_Address + '\' + (select substring(v.caption,1,1)) from Volumes v join nodes n on v.nodeid=n.nodeid where v.volumeid=${VolumeID}} ${Node.Caption} "${Fullname}" "${VolumePercentUsed}"
Any help much appreciated please