Munki Report-PHP, the new old kid on the block

In my organization we use Microsoft SCCM for managing Windows clients and Munki for managins OS X clients.

I have used SCCM for a while now and have to say that I find it very very powerful. The fact that collects plenty of information from the clients, uploads it to a SQL db and keeps a history, plus the ability of create dynamic computer collections based on querys to the SQL and then target those groups with tasks makes it extremely useful in an enterprise environment. Plus the amazing reports you can get if you have an SQL guru around!

Source – Taken from the Munki Report Setup guide. This has been a hugely valuable tool in my arsenal of Mac Management. Posting this here to spread the awareness of this great tool.

As any organization we try to treat the clients as homogenous as possible, regardless of the platform they run. This makes me move forward on the features/options that we have for OSX.

Now we are preparing reports from all computers to know who has administrator access to which machines. This is simple to do from the SCCM db, but we do not have this available for Mac.

I use Munki as the main deployment tool and MunkiReport-php to collect client information. The reports in there are very useful to track installations, computer locations based on networks, collect hardware details, licensed application installs.

Setup

This is version 2 of munkireport-php, a reporting client for munki. The previous version of munkireport is still available on googlecode: munkireport-php.

This project is a complete rewrite from the previous version, which was a quick-and-dirty port from the original python based munkireport [https://code.google.com/p/munkireport/].

The project is still a work-in-progress, although I’m using it in a production environment for quite some time now.

First setup the server – the clients use the server to pull down the installation scripts.

On the server

Use git to checkout the latest version or download the zip file and put all files in the root directory of your website (for subdirs, see below).

Create config.php in the root directory of your website. Make sure it has at least in the top of the file. config.php overrides the settings in config_default.php. To configure, simply copy any settings over from config_default.php to config.php and make the changes there.

Check if the directory /app/db/ is writeable by the webserver (only when using sqlite)

Note that sqlite is the default, but mysql is also supported. check the config_default.php for the proper values if you wish to substitute a mysql database.

Create the first user

Visit the site with a webbrowser, you’ll be prompted to create a user and password
Append the generated hash line to config.php

Now refresh the page in your browser, and you should be able to log in with the credentials you just created.
No authentication

If you want to deploy munkireport without authentication (because you run your own authentication method), add the following line to config.php

$conf['auth']['auth_noauth'] = array();

Setting up a client manually

Now you can setup a client to test if all is ok

sudo /bin/bash -c "$(curl -s https://example.com/index.php?/install)"

Setting up clients with munki

When the client reporting goes well, you can add a pkginfo file to munki:

Download the pkginfo file

curl -s https://example.com/index.php?/install/plist -o MunkiReport.plist

Copy MunkiReport.plist into your Munki repository (in your pkgsinfo directory) Run makecatalogs, and be sure to add it to a manifest as well.

AI Usage Transparency Report

Pre-AI Era · Written before widespread use of generative AI tools

AI Signal Composition

Tone Struct List Instr
Repetition: 0%
Tone: 65%
Structure: 65%
List: 7%
Instructional: 18%
Emoji: 0%

Score: 0.04 · Low AI Influence

Summary

MunkiReport-php is a reporting client for Munki, used to collect client information and generate reports. It's a complete rewrite of the previous version and supports both SQLite and MySQL databases.

Related Posts

Fontrestore, Apple’s fix for your fonts

FontAgent Pro is a great font management solution for OS X. One of the best things about it is that its 100% cloud based. You can run the entire thing hosted in their cloud instance or you can run it on your own server. It's a great solution for font management, and does everything from managing your font licenses, users, libraries, and sets. The one problem however is the fact that when deploying a new font solution, you find yourself in a quandary over the right way to deploy it....

Read more

Munki Software License Tracking

Beginning with the 0.9.1 builds of the munki tools, Munki can query a webserver to determine if there are available seats for licensed software (or any software you wish to make available via optional_installs, yet control the number of deployed copies). In order to use this feature, here are the things you need:

Read more

Deploying Printers with Munki on 10.9 Mavericks

You can use Profile Manager to manage printer lists but the functionality is limited. One major issue with managing printer lists with Profile Manager is if you add a printer to an Profile Manager client’s printer list, and the driver file for that the printer isn’t installed on the client system, the printer will be added using the Generic Printer Driver. Even if the printer driver file is installed later the printer continues to use the Generic Printer Driver.

Read more

Updating Munki Web Admin on 10.9 Mavericks Server

Discover the Power of MUNKI: A Robust Solution for Your Mac Management Needs MUNKI is a highly acclaimed product that has earned its place as a top choice among Mac administrators, thanks to its strong community backing and impressive track record. With support from industry giants like Disney and Google, this reliable solution has consistently delivered results across all versions of OSX since its inception. Whether you're managing a small fleet or a large enterprise, MUNKI's robust features and seamless integration make it an ideal choice for any Mac management...

Read more

Packaging & Deploying VMWare Fusion 5.0.1 – 6.0.2

If you're like me and need to deploy VMware in your environment and are unsure of the approach to use, then you have several options. If you use Casper, JAMF has come out with a PDF outlining the best methods for packaging and deploying VMware, its preferences and VMMachines. Since VMWare Fusion 5 however, VMware has included a nice manageable way to deploy VMware to all your machines. This alternative method eliminates the need for third-party tools or scripts, making it a straightforward solution for those who prefer a more...

Read more

10.9 Deploying Mac App Store Packages

If your like me then your happy that Apple has made several of their wonderful software titles free recently, specifically iLife and iWork for Mavericks. Apple has a defined workflow for deployment of these systems. Their method is to have companies enroll into their Volume Licensing Program once enrolled you can download apps from the app store and the iOS store and deploy these seamlessly to your devices with Profile Manager for Mavericks.

Read more

10.9 Mavericks, AutoDMG a match made in heaven

If your like me then you have an entire organization of users who are itching to get their hands on the latest Mavericks operating system and have been told to wait, we are testing. Truth is that its already been tested. I tested it all through the various developer builds and the issues have for the most part been very minimal which is great for a .0 release. However the issue really has been how are we going to deploy it.

Read more

10.9 Auto Enrollment Profile Manger Package

Many years ago when I was managing a fleet of computer using 10.6, I thought that I was a master systems administrator because I had all my computers managed by MCX. It took me years to get MCX working properly across all my systems, but it saved me countless hours of time and energy managing preferences and remote settings for new and existing systems. This made my life so much easier, as I no longer had to manually configure each system individually.

Read more

Backup your website data securely to Amazon S3

Your websites and your systems are only as good as the backup strategy that you have for them. While managing Mac’s you may think that having a strategy for website data backup is not relevant or important. Until you realize all of the technologies that you use on a daily basis that are actually moving to the web platform or cloud. For example OSX Wiki Server and Profile Manager 2 are all 100% web based technologies. If you use a web based ticketing system like Web Help Desk or Spiceworks...

Read more

Roll your own DNS monitoring with DIG, Bash & CRON

If your like me your always looking for ways to be notified of things changing in your IT Environment. There are many tools that you can use to help do this. StatusCake is a great free online tool for monitoring website and IP level uptime and downtime with baked in email notifications. Zeonoss and NAGIOS are great tools that can offer the same with SNMP Monitoring baked in as well.

Read more