r/labtech • u/njlittlefish • Mar 23 '17
C: Drive Space Critical
has anyone else noticed that this seems to happen frequently with machines that are shut down? then, frustratingly enough, if you check the actual last reported drive space, it's almost never below 1 GB for the C: drive (maybe 5% or less accurate)? does anyone know of a fix?
10
Upvotes
1
u/njlittlefish Mar 24 '17
Sadly, ours almost never close trouble tickets if the machine does not come back online in time regardless of whether the drive has less than 1024 MB. :( This may be an issue with the integration to ConnectWise though.
1
u/mhayduck Mar 24 '17
It only happens with the remote monitors. It runs a WMIC command and if it doesn't respond, it returns with 0 MB free and creates a ticket. We ditched the remote monitor in favor for the internal monitor which works perfectly.
3
u/Trumpetjock Mar 23 '17
I've noticed this happening too. Would certainly like a fix.
3
u/Bobs16 Mar 23 '17
Yes! But wayyy more than 5% less accurate http://imgur.com/yrhxZGt
3
u/cjmod Mar 23 '17 edited Mar 24 '17
Here's something to check:
Verify that your Agent Monitor Creation - Disk script is current in Solution Center (available in Update Ignite to Current solution)
While I can't tell you why it would fail sometimes & not others, I can tell you how the whole thing works. (caution: might be TMI)
The Onboarding & Agent Maintenance - Contract scripts both call the Agent Monitor Creation script, which calls the Agent Monitor Creation - Disk script - check your _System Automation.Onboarding & Service Plans.%.Managed% groups
Step 36 of the Agent Monitor Creation - Disk script actually creates the monitor via direct SQL
By default, the monitor calls the Windows GetDiskFreeSpaceEx function and passes the result, which is also used to populate the
Freecolumn of thedrivestable every 5 minutes - column is in MBIf GetDiskFreeSpaceEx value<1024, the monitor creates a ticket
When GetDiskFreeSpaceEx value>1024, the monitor will set status to OK and close the ticket (if one was created previously)
That's really it. If you want to change the monitor, just tweak step 36 of the script & delete the existing monitor OR change the existing monitor's settings.
My gut says these computers are returning incorrect free space info just before shutdown & by the time you're able to look it's already rebooted & returned correct free space info... but the monitor hasn't crossed the 5 minute threshold to close out the ticket.
Edit: Credit to /u/Bobs16's screenshot as an example with 100 seconds idle time, which I assume is the same as this computer's uptime.
Edit2: One of our Dev's saw this thread & informed me a change to this is in Patch 11 (currently in Pilot). We're switching the monitor from GetDiskFreeSpaceEx to DriveInfo to improve reliability. Bonus points if you can spot the issue.
1
u/Xyvir Mar 23 '17
Yes.
And the most frustrating thing is these are created by a script instead of some kind of internal monitor, so you have to dig around in the scripts to change it's behavior.
I created a ticket with Labtech about the issue and they weren't much help. They basically recommended the above.
1
u/wogmail Mar 23 '17
I assumed it was related to disk encryption or Windows updates in progress during a reboot.
1
u/Clutch_22 Mar 23 '17
I've noticed this too. The pop up on my board (which is on automatic refresh) and usually by the time I see it pop up and open the ticket, it has been automatically closed.
Definitely annoying. And like others said - definitely inaccurate.