Report load problems

304 views
Skip to first unread message

ze

unread,
May 6, 2016, 4:36:49 AM5/6/16
to munkireport
hey guys,

I configured munki with munkireport on an ubuntu system with the help of a system administrator.
now munki works fine but munkireport has problems.

when I use sudo /bin/bash -c "$(curl -s http://xxx.xxx/index.php?/install)" I take the following output:
2016-05-06 09:15:52.934 defaults[18667:608240]
The domain/default pair of (/Library/Preferences/MunkiReport, UseMunkiAdditionalHttpHeaders) does not exist
Preparing /usr/local/munki/ and /Library/Preferences/MunkiReport
BaseURL is http://xxx.xxx/
Retrieving munkireport scripts
Configuring munkireport
+ Installing ard
+ Installing bluetooth
+ Installing certificate
+ 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 servermetrics
+ Installing service
+ Installing timemachine
+ Installing warranty
+ Installing wifi
- Uninstalling crashplan
- Uninstalling gsx
Setting preferences
Installation of MunkiReport v2.8.5 complete.
Running the preflight script for initialization
   
Munkireport: # Executing scripts in preflight_abort.d
   
Munkireport: # Executing scripts in preflight.d
   
Munkireport: Running bluetooth.sh
   
Munkireport: Running cert_check
   
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.sh
   
Munkireport: Running servermetrics.py
   
Munkireport: Running service_check
   
Munkireport: Running timemachine.sh
   
Munkireport: Running warranty
   
Munkireport: Running wifi
   
Munkireport: Running submit.preflight
   
Munkireport: submit.preflight Error: ERROR: Munkireport: http://store.moccu/index.php?/report/check_in failed, HTTP returncode 500 (internal server error)


After a few minutes the last error was away. Now 

    Munkireport: Running submit.preflight


 But the first error top The domain/default pair of (/Library/Preferences/MunkiReport, UseMunkiAdditionalHttpHeaders) is stil there.


When I check munkireport via webinterface, I see the serialnumber and IP adress but not the OSX version, no free space, no CPU information and anything else.


What is wrong???






A.E. van Bochoven

unread,
May 6, 2016, 5:50:01 AM5/6/16
to munki...@googlegroups.com
You can ignore the UseMunkiAdditionalHttpHeaders message, we should fix that, but it's not harmful.

Munkireport sends most data on postflight, not on preflight. So you would run

sudo /usr/local/munki/postflight

to check if everything is ok.
HTTP returncode 500 is a serverside error message. you should be able to find more details in the error logs of your webserver. Turning on debug for munkireport is also helpful in troubleshooting:
https://github.com/munkireport/munkireport-php/wiki/Troubleshooting

-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.

ze

unread,
May 6, 2016, 6:15:50 AM5/6/16
to munkireport
the output:
client:~ as$ sudo /usr/local/munki/postflight
Password:
   
Munkireport: # Executing scripts in postflight.d
   
Munkireport: Running inventory_add_plugins.py
   
Munkireport: Adding 17 plugins
   
Munkireport: Requesting filevault_status
   
Munkireport: Requesting location
   
Munkireport: Requesting profile
   
Munkireport: Requesting ard
   
Munkireport: Requesting inventory
   
Munkireport: Requesting printer
   
Munkireport: Requesting timemachine
   
Munkireport: Requesting bluetooth
   
Munkireport: Requesting certificate
   
Munkireport: Requesting directory_service
   
Munkireport: Requesting munkireport
   
Munkireport: Requesting servermetrics
   
Munkireport: Requesting localadmin
   
Munkireport: Requesting disk_report
   
Munkireport: Requesting displays_info
   
Munkireport: Requesting warranty
   
Munkireport: Requesting wifi
   
Munkireport: Requesting power
   
Munkireport: Requesting installhistory
   
Munkireport: Requesting service
   
Munkireport: Requesting network
   
Munkireport: Requesting munkiinfo
   
Munkireport: Requesting security
   
Status: 200
   
Headers: {u'X-Powered-By': u'PHP/5.6.16', u'Transfer-Encoding': u'Identity', u'Server': u'nginx/1.8.0', u'Connection': u'keep-alive', u'Date': u'Fri, 06 May 2016 10:10:18 GMT', u'Content-Type': u'text/html; charset=UTF-8'}
   
Munkireport: Need to update installhistory
   
Munkireport: Need to update reportdata
   
Munkireport: Need to update bluetooth
   
Munkireport: Need to update displays_info
   
Munkireport: Need to update ard
   
Munkireport: Need to update servermetrics
   
Munkireport: Need to update localadmin
   
Munkireport: Need to update timemachine
   
Munkireport: Need to update network
   
Munkireport: Need to update certificate
   
Munkireport: Need to update disk_report
   
Munkireport: Need to update machine
   
Munkireport: Need to update munkireport
   
Munkireport: Need to update directory_service
   
Munkireport: Need to update location
   
Munkireport: Need to update profile
   
Munkireport: Need to update printer
   
Munkireport: Need to update power
   
Munkireport: Need to update munkiinfo
   
Munkireport: Need to update filevault_status
   
Munkireport: Need to update service
   
Munkireport: Need to update inventory
   
Munkireport: Need to update wifi
   
Munkireport: Need to update secuity
   
Munkireport: Sending items
   
Status: 200
   
Headers: {u'X-Powered-By': u'PHP/5.6.16', u'Transfer-Encoding': u'Identity', u'Server': u'nginx/1.8.0', u'Connection': u'keep-alive', u'Date': u'Fri, 06 May 2016 10:10:19 GMT', u'Content-Type': u'text/html; charset=UTF-8'}
   
Munkireport: <br />
<b>Warning</b>:  require_once(/storage/software/store//app/models/domdocument.php): failed to open stream: No such file or directory in <b>/storage/software/store/app/helpers/site_helper.php</b> on line <b>122</b><br />
<br />
<b>Fatal error</b>:  require_once(): Failed opening required '/storage/software/store//app/models/domdocument.php' (include_path='.:/usr/local/share/pear') in <b>/storage/software/store/app/helpers/site_helper.php</b> on line <b>122</b><br />


after DEBUG = TRUE the 500 error is gone.

But only the webserver admin can read it. I try to fix this problem, that nothing reports to munki_report exception serialnumber and ipadress 

A.E. van Bochoven

unread,
May 6, 2016, 7:19:53 AM5/6/16
to munki...@googlegroups.com
You need to add xml support for php

Sent from my iPhone
--
Message has been deleted

ze

unread,
May 9, 2016, 5:03:12 AM5/9/16
to munkireport
admin says we have libxml (version 20903)

is that sufficient?

ze

unread,
May 9, 2016, 5:35:58 AM5/9/16
to munkireport
which configration from info.php do u need?
that is very much.

A.E. van Bochoven

unread,
May 9, 2016, 5:38:25 AM5/9/16
to munki...@googlegroups.com
Info about DOM and libxml

-Arjen


On May 9, 2016, at 11:35 AM, ze <salih....@moccu.com> wrote:

which configration from info.php do u need?
that is very much.

ze

unread,
May 9, 2016, 5:49:11 AM5/9/16
to munkireport
libxml support: active
libxml compied version 2.9.3
libxml loaded version 20930
libxml streams enabled

do you mean "session.cookie_domain"?
both value typs have no value.

A.E. van Bochoven

unread,
May 9, 2016, 5:55:29 AM5/9/16
to munki...@googlegroups.com
I would like the info for dom:

dom

DOM/XML enabled 
DOM/XML API Version 20031129 
libxml Version 2.9.2 
HTML Support enabled 
XPath Support enabled 
XPointer Support enabled 
Schema Support enabled 
RelaxNG Support enabled 


-Arjen


ze

unread,
May 9, 2016, 5:56:47 AM5/9/16
to munkireport
this section is missing.

A.E. van Bochoven

unread,
May 9, 2016, 5:58:54 AM5/9/16
to munki...@googlegroups.com
Could you post the configure command:

Configure Command '/Library/Caches/com.apple.xbs/Binaries/apache_mod_php/apache_mod_php-101~18/Objects/php/configure' '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-dependency-tracking' '--sysconfdir=/private/etc' '--with-libdir=lib' '--enable-cli' '--with-iconv=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.Internal.sdk/usr' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/Library/Server/Web/Config/php' '--with-libxml-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.Internal.sdk/usr' '--with-openssl=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.Internal.sdk/usr/local 



On May 9, 2016, at 11:56 AM, ze <salih....@moccu.com> wrote:

this section is missing.

ze

unread,
May 9, 2016, 6:03:02 AM5/9/16
to munkireport
Configure Command './configure' '--with-layout=GNU' '--localstatedir=/var' '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all' '--enable-libxml' '--enable-mysqlnd' '--with-libxml-dir=/usr/local' '--with-pcre-regex=/usr/local' '--with-zlib-dir=/usr' '--program-prefix=' '--enable-fpm' '--with-fpm-user=www' '--with-fpm-group=www' '--with-regex=php' '--with-zend-vm=CALL' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=amd64-portbld-freebsd10.1' 'build_alias=amd64-portbld-freebsd10.1' 'CC=cc' 'CFLAGS=-O2 '-pipe' '-fstack-protector' '-fno-strict-aliasing'' 'LDFLAGS= '-fstack-protector'' 'LIBS=-lpthread' 'CPPFLAGS=' 'CPP=cpp' 'CXX=c++' 'CXXFLAGS=-O2 '-pipe' '-fstack-protector' '-fno-strict-aliasing'

A.E. van Bochoven

unread,
May 9, 2016, 6:58:41 AM5/9/16
to munki...@googlegroups.com
Hmm, I don’t see anything out of the ordinary. According to the docs, the dom extension should be enabled by default:


Not sure how to advise any further. Did you restart the web server after enabling libxml?

-Arjen




On May 9, 2016, at 12:03 PM, ze <salih....@moccu.com> wrote:

Configure Command './configure' '--with-layout=GNU' '--localstatedir=/var' '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all' '--enable-libxml' '--enable-mysqlnd' '--with-libxml-dir=/usr/local' '--with-pcre-regex=/usr/local' '--with-zlib-dir=/usr' '--program-prefix=' '--enable-fpm' '--with-fpm-user=www' '--with-fpm-group=www' '--with-regex=php' '--with-zend-vm=CALL' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=amd64-portbld-freebsd10.1' 'build_alias=amd64-portbld-freebsd10.1' 'CC=cc' 'CFLAGS=-O2 '-pipe' '-fstack-protector' '-fno-strict-aliasing'' 'LDFLAGS= '-fstack-protector'' 'LIBS=-lpthread' 'CPPFLAGS=' 'CPP=cpp' 'CXX=c++' 'CXXFLAGS=-O2 '-pipe' '-fstack-protector' '-fno-strict-aliasing'


ze

unread,
May 9, 2016, 7:06:03 AM5/9/16
to munkireport
the admin has installed DOM.
we restart it und now i take more information about software and hardware.

but nothing about storage, bluetooth, display, printers??? i have no idea.

A.E. van Bochoven

unread,
May 9, 2016, 8:12:37 AM5/9/16
to munki...@googlegroups.com
So what is now the output of

sudo /usr/local/munki/postflight

-Arjen

ze

unread,
May 9, 2016, 8:14:42 AM5/9/16
to munkireport

 Download error -1001: The request timed out.

    Munkireport: Headers: None

ERROR: Munkireport: The request timed out.

A.E. van Bochoven

unread,
May 9, 2016, 8:16:54 AM5/9/16
to munki...@googlegroups.com
It looks like your server is not answering..

-Arjen


ze

unread,
May 9, 2016, 9:21:07 AM5/9/16
to munkireport
ok thanks,
I look for the conflict.

out of topic:
how can I customize the color on the interface.
I read:

but I don't understand CSS. is there an example?
To add an icon and chance the color in the top?

Reply all
Reply to author
Forward
0 new messages