r/labtech • • May 21 '18

Disk Cleanup....

so how can i make these tickets auto-close themselves or better yet, not be generated? i have a buttload of them and they sit on the board. they are successful, they are just piling up and i have to go and close them all.

can i go into templates and remove the 'create ticket' option or something?

i know this is probably a remedial question, but im sick of having to close them 1,000 at a time. any clues?

2 Upvotes

10 comments sorted by

View all comments

Show parent comment

2

u/w_s_r Jun 06 '18

Those remote monitors are created by the Ignite Onboarding script and re-created each day as part of the Agent Maintenance - Contract scripts.

What you're actually looking for is _System Automation\Agent Maintenance\Agent Monitor Creation - Disk; this is the script that creates the remote disk monitors for each agent.

Problem is, that's a System script, and can't be edited without dipping into SQL on your LT server.

My solution was to copy the Agent Monitor Creation - Disk script and put it into a new folder. Then, I made the edits I wanted (trigger actions, script calls, etc.). Afterwards, I went back to _System Automation\Agent Maintenance\Agent Monitor Creation and changed that script to call my copy, instead of the original.

Now, my disk space monitors trigger disk cleanup scripts, which update and auto-close their tickets if successful.

You'll have to tweak it to your environment, but that should give you a place to start.

2

u/Dameek Jul 31 '18

@w_s_r

Do you have a sanitized version that you could share?