Pruning Managed Install Reports

50 views
Skip to first unread message

Jeremy Alan Long

unread,
Mar 12, 2015, 8:28:13 AM3/12/15
to munkise...@googlegroups.com
Hello,

Munkiserver has been working great for the past six months or so, but has been gradually slowing down. When doing some poking around, I have noticed that over a thousand Managed Install Reports entries have been recorded per client. We have nearly 500 clients, so I believe this may be causing the performance hit.

How do I clear those entries to something like the most recent per week or month, or even just the most recent one? Is there a script on the munkiserver that isn't running?

Possibly related to scripts not running (I'm not sure), the Automatic update notification is also not working for our install, even after clicking on Packages --> Check for Updates. We even manually entered the proper MacUpdate IDs for packages.

These symptoms have been happening with multiple versions of MunkiTools.

munki server 0.6 (5846f1b)
munki tools 2.1.1.2352

Jordan Raine

unread,
Mar 12, 2015, 12:13:32 PM3/12/15
to munkise...@googlegroups.com, munkise...@googlegroups.com
Hi Jeremy,

I think you'll find one of the rake chore tasks to be helpful:

$ rake chores:cleanup_old_managed_install_reports[30]

The above command removes ManagedInstall reports older than 30 days. 

Run `rake --tasks | grep chores ` for a full list of chore tasks with their descriptions or visit https://github.com/jnraine/munkiserver/blob/master/lib/tasks/chore.rake to read the code. 

I hope this helps!

Cheers,

Jordan



--
You received this message because you are subscribed to the Google Groups "munkiserver-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munkiserver-d...@googlegroups.com.
To post to this group, send email to munkise...@googlegroups.com.
Visit this group at http://groups.google.com/group/munkiserver-dev.
For more options, visit https://groups.google.com/d/optout.

Jeremy Alan Long

unread,
Apr 23, 2015, 12:07:30 PM4/23/15
to munkise...@googlegroups.com
I had to run as follows in /usr/local/munkiserver/lib/tasks to get it to work:

$ RAILS_ENV=production rake chore:cleanup_old_managed_install_reports[30]

Thanks for pointing me in the right direction!

Jeremy
Reply all
Reply to author
Forward
0 new messages