Posted on 06-11-2019 08:42 AM
I'm trying to deploy Rapid7's Insight Agent to all of our Mac machines. The ZIP file contains an installer.sh, and .key, .pem, and .json
The instructions listed on their website (copied and pasted below):
Any help would be appreciated!
Posted on 06-11-2019 08:59 AM
Use Jamf composer and deliver those files to an appropriate folder and then add a post install script that runs the sh script.
Posted on 06-11-2019 09:14 AM
thanks @allanp81 - i've tried briefly with a DMG and PKG packaging those to no avail..
Posted on 06-11-2019 09:15 AM
Like @allanp81 mentioned, and to expand on a little, unzip the file contents, make any necessary permissions and/or executable changes on the installer script as noted, and then drop the resulting unzipped folder into /private/tmp/. Then in Composer, drag that folder into the sidebar to create a new Composer source. It should copy them in to the same location.
From there, add a post install script to the Composer source and use the full path to the .sh file (not sudo ./agent_installer.sh install_start
) as mentioned in the instructions) and run the script. It would be something like /private/tmp/<foldername>/agent_installer.sh install_start
Build it into a .pkg installer and test.
You will need to test the resulting package from an actual policy, only because sometimes such packages when run locally work fine, but won't work for one reason or another when deployed via Jamf Pro policy. Hopefully it will work as is though.
Posted on 06-11-2019 11:22 AM
thanks @mm2270 - tried it out, and it worked on my machine, but when i tested on other machines, it would download the files to their computer and i can confirm they are there, but the .sh didn't run
Posted on 06-11-2019 12:51 PM
so it looks like it IS installing and running the process, but doesn't show in the Activity Monitor app (i don't know why), but DOES show in Terminal when running the command: ps -ax | grep ir_agent
in which we're able to track/monitor on the Rapid7 console... so i guess i'll mark this as solved.
Posted on 06-12-2019 05:01 AM
man tee
Posted on 04-30-2020 06:06 AM
great response and support that worked @mm2270 @allanp81 thanks both