Cannot Connect Client to MunkiReport

965 views
Skip to first unread message

Mike Reid

unread,
Jun 8, 2017, 2:19:13 PM6/8/17
to munkireport

I hope someone can shed some light on my issue...I am trying to connect a client to my report server using sudo /bin/bash -c "$(curl -s http://myserver.domain.com/..." (being discreet with server name and domain) but all i get is "no matches found: http://myserver.domain.com/report/index.php/install


I know curl works and my connection is good since i am able to get the plist file onto my desktop as described here "curl -s https://yourserver.example.com/report/index.php?/install/plist -o \

~/Desktop/MunkiReport.plist"


I just can't get a client to register with my report server.


Any idea on what I may be missing in my configuration on my server or even client? 


Thanks!

David Nelson

unread,
Jun 8, 2017, 2:32:31 PM6/8/17
to munki...@googlegroups.com
Are you missing a question mark after the index.php? 
--
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.

A.E. van Bochoven

unread,
Jun 8, 2017, 3:17:23 PM6/8/17
to munki...@googlegroups.com

Mike Reid

unread,
Jun 8, 2017, 3:17:50 PM6/8/17
to munkireport
Yes it is, sorry, i may have a typo in my post..the question mark is there after "index.php?"

This is the command i had been trying  sudo /bin/bash -c "$(curl -sv http://myserver.domain.com/report/index.php?/install)"


On Thursday, June 8, 2017 at 2:32:31 PM UTC-4, David Nelson wrote:
Are you missing a question mark after the index.php? 

On Jun 8, 2017, at 11:19, Mike Reid <mrei...@gmail.com> wrote:

I hope someone can shed some light on my issue...I am trying to connect a client to my report server using sudo /bin/bash -c "$(curl -s http://myserver.domain.com/..." (being discreet with server name and domain) but all i get is "no matches found: http://myserver.domain.com/report/index.php?/install


I know curl works and my connection is good since i am able to get the plist file onto my desktop as described here "curl -s https://yourserver.example.com/report/index.php?/install/plist -o \

~/Desktop/MunkiReport.plist"


I just can't get a client to register with my report server.


Any idea on what I may be missing in my configuration on my server or even client? 


Thanks!

A.E. van Bochoven

unread,
Jun 8, 2017, 3:19:50 PM6/8/17
to munki...@googlegroups.com

> On 8 Jun 2017, at 21:17, Mike Reid <mrei...@gmail.com> wrote:
>
> Yes it is, sorry, i may have a typo in my post..the question mark is there after "index.php?"
>
> This is the command i had been trying sudo /bin/bash -c "$(curl -sv http://myserver.domain.com/report/index.php?/install)

Could you post the (redacted) output of that command?

-Arjen

Mike Reid

unread,
Jun 8, 2017, 3:32:23 PM6/8/17
to munkireport
@Arjen, thank you for the link.

I am able to get the demo working fine on my local machine is just that my report server is on an Ubuntu 16.04 box using nginx. When I navigate to http://myserver.domain.com/report, from my clients browser, I am able to see the main report dashboard. I am pretty confident the server is setup correctly minus this client connection issue. 

I just can't seem to pinpoint what is missing on my server or even on my client...

A.E. van Bochoven

unread,
Jun 8, 2017, 3:41:14 PM6/8/17
to munki...@googlegroups.com


Sent from my iPhone

A.E. van Bochoven

unread,
Jun 8, 2017, 3:42:55 PM6/8/17
to munki...@googlegroups.com
Hit send accidentally..

If you visit the /install url with your browser, do you see the install script?

Sent from my iPhone

On 8 Jun 2017, at 21:32, Mike Reid <mrei...@gmail.com> wrote:

Mike Reid

unread,
Jun 8, 2017, 3:49:26 PM6/8/17
to munkireport
Yes I can..


#!/bin/bash

BASEURL="http://myserver.domain.com/report/"
TPL_BASE="${BASEURL}/assets/client_installer/"
MUNKIPATH="/usr/local/munki/" # TODO read munkipath from munki config
CACHEPATH="${MUNKIPATH}preflight.d/cache/"
POSTFLIGHT_CACHEPATH="${MUNKIPATH}postflight.d/cache/"
PREFPATH="/Library/Preferences/MunkiReport"
PREFLIGHT=1
PREF_CMDS=( ) # Pref commands array
TARGET_VOLUME=''
CURL=("/usr/bin/curl" "--fail" "--silent" "--show-error")
# Exit status
ERR=0

# Packaging
BUILDPKG=0
IDENTIFIER="com.github.munkireport"
RESULT=""

VERSION="2.14.3"
VERSIONLONG="2.14.3.2785"

A.E. van Bochoven

unread,
Jun 8, 2017, 4:14:43 PM6/8/17
to munki...@googlegroups.com

> On 8 Jun 2017, at 21:49, Mike Reid <mrei...@gmail.com> wrote:
>
> http://myserver.domain.com/report/index.php?/install - here is an excerpt


So could you post the output of:

sudo /bin/bash -c "$(curl -s http://myserver.domain.com/report/index.php?/install)

-Arjen

Mike Reid

unread,
Jun 8, 2017, 4:33:15 PM6/8/17
to munkireport
So, it donned on me that my shell I was using to run the curl command was zsh (oh-my-zsh) - i thought that may be the issue so I changed my shell back to bash and the command ran!

Here is my output after changing shell:

Preparing /usr/local/munki/
Retrieving munkireport scripts
Configuring munkireport
+ Installing ard
+ Installing bluetooth
+ Installing certificate
+ Installing crashplan
+ Installing directory_service
+ Installing disk_report
+ Installing displays_info
+ Installing filevault_status
+ Installing installhistory
+ Installing inventory
+ Installing localadmin
+ Installing location
+ Installing munkiinfo
+ Installing munkireport
+ Installing network
+ Installing power
+ Installing printer
+ Installing profile
+ Installing security
+ Installing service
+ Installing warranty
+ Installing wifi
- Uninstalling appusage
- Uninstalling backup2go
- Uninstalling caching
- Uninstalling deploystudio
- Uninstalling fan_temps
- Uninstalling findmymac
- Uninstalling fonts
- Uninstalling gpu
- Uninstalling gsx
- Uninstalling homebrew
- Uninstalling homebrew_info
- Uninstalling managedinstalls
- Uninstalling mbbr_status
- Uninstalling network_shares
- Uninstalling sccm_status
- Uninstalling servermetrics
- Uninstalling smart_stats
- Uninstalling softwareupdate
- Uninstalling timemachine
- Uninstalling usb
- Uninstalling user_sessions
Preparing /Library/Preferences/MunkiReport
Setting preferences
Installation of MunkiReport v2.14.3 complete.
Running the preflight script for initialization
    Munkireport: # Executing scripts in preflight_abort.d
    Munkireport: # Executing scripts in preflight.d
    Munkireport: Running bluetooth.py
    Munkireport: Running cert_check
    Munkireport: cert_check Error: date: invalid option -- 'j'
Try 'date --help' for more information.
WARNING: Munkireport: cert_check return code: 1
    Munkireport: Running crashplan.py
    Munkireport: CrashPlan log not found here: /Library/Logs/CrashPlan/history.log.0
    Munkireport: Running directoryservice.sh
    Munkireport: Running disk_info
    Munkireport: Running displays.py
    Munkireport: Running filevaultstatus
    Munkireport: filevaultstatus Error: Error: FileVault is Off.
    Munkireport: Running init_ard
    Munkireport: Running init_location
    Munkireport: Running localadmin
    Munkireport: Running munkiinfo.py
    Munkireport: Running networkinfo.sh
    Munkireport: Running power.sh
    Munkireport: Running printer.py
    Munkireport: Running profile.py
    Munkireport: Running security.py
    Munkireport: Running service_check
WARNING: Munkireport: service_check return code: 1
    Munkireport: Running warranty
    Munkireport: warranty Error: stat: cannot read file system information for '%Sm': No such file or directory
stat: cannot read file system information for '%s': No such file or directory
/usr/local/munki/preflight.d/warranty: line 22: 1496953519 - /usr/local/munki/preflight.d/cache/warranty.txt 100000300000011 * ? 4096 4096 121928231 41553737 41489737 121928229 41489737 : syntax error: operand expected (error token is "/usr/local/munki/preflight.d/cache/warranty.txt 100000300000011 * ? 4096 4096 121928231 41553737 41489737 121928229 41489737 ")
WARNING: Munkireport: warranty return code: 1
    Munkireport: Running wifi
    Munkireport: Running submit.preflight
mymac:~ admin$

can't really tell if it actually completed though...

A.E. van Bochoven

unread,
Jun 8, 2017, 4:37:20 PM6/8/17
to munki...@googlegroups.com
On 8 Jun 2017, at 22:33, Mike Reid <mrei...@gmail.com> wrote:

WARNING: Munkireport: service_check return code: 1
    Munkireport: Running warranty
    Munkireport: warranty Error: stat: cannot read file system information for '%Sm': No such file or directory
stat: cannot read file system information for '%s': No such file or directory
/usr/local/munki/preflight.d/warranty: line 22: 1496953519 - /usr/local/munki/preflight.d/cache/warranty.txt 100000300000011 * ? 4096 4096 121928231 41553737 41489737 121928229 41489737 : syntax error: operand expected (error token is "/usr/local/munki/preflight.d/cache/warranty.txt 100000300000011 * ? 4096 4096 121928231 41553737 41489737 121928229 41489737 ")
WARNING: Munkireport: warranty return code: 1
    Munkireport: Running wifi
    Munkireport: Running submit.preflight
mymac:~ admin$

can't really tell if it actually completed though…

If submit.preflight runs without error, you should see something in the webUI.
You should run

sudo /usr/local/munki/postflight

To upload the rest of the data.

-Arjen

Mike Reid

unread,
Jun 8, 2017, 4:46:55 PM6/8/17
to munkireport
so close but I am getting a time out error..ugh!

Munkireport: Sending items (223KB)
    Download error -1001: The request timed out.
    Munkireport: Headers: None
ERROR: Munkireport: The request timed out.

I am gonna restart my system

Mike Reid

unread,
Jun 8, 2017, 4:55:33 PM6/8/17
to munkireport
still a time out after restart...new problem to try and figure out...

Anyways, thank you Arjen for your help!
Reply all
Reply to author
Forward
0 new messages