Select which modules to install on the client

725 views
Skip to first unread message

Peter-Erik van Riet

unread,
Jul 21, 2015, 4:20:05 AM7/21/15
to munki...@googlegroups.com
Hi, first time setup MunkiReport on Ubuntu. Following setup from Clayton Burlisin https://clburlison.com/munkirepo-guide-part-3/   works great

But if i fill in http://asus.website.eu/index.php?/install/dump_modules/config   i get a error 404 Not Found (nginx/1.4.6 (Ubuntu))
What am i missing here?

Running MunkiReport Version 2.5.2.1323

A.E. van Bochoven

unread,
Jul 21, 2015, 4:37:20 AM7/21/15
to munki...@googlegroups.com
Not sure what's happening,

index.php?/install/dump_modules/config

should be fine, on 2.5.2 it should give you

$conf['modules'] = array('ard','bluetooth','certificate','comment','directory_service','disk_report','displays_info','filevault_escrow','filevault_status','installhistory','inventory','localadmin','machine','munkireport','network','power','profile','reportdata','servermetrics','service','timemachine','warranty');

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

Peter-Erik van Riet

unread,
Jul 21, 2015, 4:51:37 AM7/21/15
to munki...@googlegroups.com
Everything is the latest version, only the web address is not working here. 127.0.0.1/index etc gives same error

In the config.php what is the best location for the $conf['modules' ?

Example :

<?php if ( ! defined( 'KISS' ) ) exit;

$conf['index_page'] = 'index.php?';
$conf['sitename'] = 'Company - MunkiReport';
$conf['allow_migrations'] = FALSE;
$conf['debug'] = TRUE;
$conf['timezone'] = @date_default_timezone_get(America/Chicago);
$conf['vnc_link'] = "vnc://%s:5900";
$conf['ssh_link'] = "ssh://ladmin@%s";
ini_set('session.cookie_lifetime', 43200);
$conf['locale'] = 'en_US';
$conf['lang'] = 'en';
$conf['keep_previous_displays'] = TRUE;

/*
|===============================================
| Authorized Users of Munki Report
|===============================================
| Visit http://yourserver.example.com/report/index.php?/auth/generate to generate additional local values
*/
$auth_config['root'] = '$P$BUqxGuzR2VfbSvOtjxlwsHTLIMTmuw0'; // Password is root

/*
|===============================================
| PDO Datasource
|===============================================
*/
$conf['pdo_dsn'] = 'mysql:host=localhost;dbname=munkireport';
$conf['pdo_user'] = 'munki';
$conf['pdo_pass'] = 'munki';
$conf['pdo_opts'] = array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8');

Arjen alvast dank




A.E. van Bochoven

unread,
Jul 21, 2015, 5:37:07 AM7/21/15
to munki...@googlegroups.com

> On 21 Jul 2015, at 10:51, Peter-Erik van Riet <peter.eri...@gmail.com> wrote:
>
> Everything is the latest version, only the web address is not working here. 127.0.0.1/index etc gives same error

But you are able to access the Munkireport webinterface? You should use the same address for the listing of the modules.

>
> In the config.php what is the best location for the $conf['modules' ?

Order does not matter, put it anywhere you like.

As an extra note: before munkireport would install all modules by default, but there now are a lot of modules that may not make sense in a lot of environments. For example the servermetrics module is only meant to run on a Mac OSX server (to report on network traffic, afp/smb users, caching performance).
So you should only define the modules that you actually want to use.

There's one extra that's not documented (yet), you can also specify which modules you want to install when downloading the install script. You can put the requested modules in the request.
If you only want to install the munkireport, timemachine, localadmin and network modules, your url would look like

http://your.domain/index.php?/install/modules/munkireport/timemachine/localadmin/network

To create a package that only contains these modules, run

bash -c "$(curl http://your.domain/index.php?/install/modules/munkireport/timemachine/localadmin/network)" bash -i ~/Desktop

>
> Example :
>
> <?php if ( ! defined( 'KISS' ) ) exit;
>
>
>
> $conf['index_page'] = 'index.php?';
> $conf['sitename'] = 'Company - MunkiReport';
> $conf['allow_migrations'] = FALSE;
>
>
> Arjen alvast dank

Geen probleem!

-Arjen



Peter-Erik van Riet

unread,
Jul 21, 2015, 5:44:13 AM7/21/15
to munki...@googlegroups.com
Found it, at the installation:  sudo git clone https://github.com/munkireport/munkireport-php /usr/share/nginx/html/report


dank

Peter-Erik van Riet

unread,
Jul 21, 2015, 6:00:46 AM7/21/15
to munki...@googlegroups.com
Last question; run the http://asus.website.eu/report/index.php?/install/dump_modules/config

so if want to for example add ard,directory_service,disk_report
i just add 

$conf['modules'] = array('ard,directory_service,disk_report'); 

to the config.php file?

Peter-Erik van Riet

unread,
Jul 21, 2015, 7:45:45 AM7/21/15
to munki...@googlegroups.com
Found it

Daniel Warren

unread,
Mar 11, 2016, 10:50:44 AM3/11/16
to munkireport
If you are following the clburlison guide then you may have made the same mistake I did.  Munkireport has it's own location separate from the root of your server.  http://www.example.com/report.  So the address for you to view the modules is should be http://asus.website.eu/report/index.php?/install/dump_modules/config.
Reply all
Reply to author
Forward
0 new messages