Starts the Rapid7 Insight Agent service on macOS endpoints to maintain continuous security monitoring and vulnerability assessment
This Automox Worklet™ keeps the Rapid7 Insight Agent service active on macOS endpoints. The Worklet checks for the presence of the Rapid7 service (identified by the launch agent identifier com.rapid7.ir_agent), then verifies it is currently running.
If the service is found but not running, the Worklet uses the launchctl start command to restart it. After the restart attempt, the Worklet confirms the process is running again.
If Rapid7 Insight Agent is not installed on the endpoint, the Worklet exits without making changes. This means the Worklet functions safely across mixed fleets where the agent may not yet be deployed.
The Rapid7 Insight Agent is a critical component of your vulnerability management strategy. It continuously scans endpoints for outdated software, missing patches, and known vulnerabilities that could be exploited by attackers.
When the service stops running, your endpoints become blind to security threats. No new vulnerabilities are detected, no compliance status is reported, and gaps remain unidentified. This exposes your organization to preventable risks.
By automating service restarts through Automox, you eliminate the need for manual intervention and maintain continuous visibility into your macOS fleet's security posture. This is especially important for CyberEssentials compliance, which requires ongoing vulnerability assessment.
Evaluation phase: The Worklet queries the system using launchctl list to check whether the Rapid7 Insight Agent service (com.rapid7.ir_agent) is registered. It then confirms the agent process is running using pgrep ir_agent. If the service is running, the endpoint passes evaluation and no further action is needed.
Remediation phase: If the service is installed but not running, the Worklet executes launchctl start com.rapid7.ir_agent to restart the agent. The Worklet then verifies the process is active again using pgrep ir_agent. A successful restart exit indicates remediation is complete.
Rapid7 Insight Agent must be installed on the endpoint
macOS 10.13 (High Sierra) or later
FixNow compatible on macOS endpoints (RunNow support)
No additional configuration or parameters required; the Worklet runs automatically
After the Worklet completes successfully, the Rapid7 Insight Agent service is guaranteed to be running on the endpoint. You can verify the configuration by checking System Settings or examining the relevant preference files. Vulnerability scans resume immediately, and the endpoint once again reports its security status to Rapid7 Insight.
You can verify the service is active by checking the endpoint's launch agent status using launchctl list | grep com.rapid7.ir_agent or by confirming the ir_agent process appears in Activity Monitor. If the restart fails, the Worklet exits with an error code and flags the endpoint for manual review.
Run this Worklet on a pilot macOS endpoint and review evaluation output for start rapid7 insight agent service.
Confirm Automox activity logs show successful completion and exit code 0.
Verify endpoint state using checks aligned to evaluation script logic, such as exit, else.
Validate remediation effects from script operations such as exit, else, launchctl, then rerun evaluation for compliance.


By submitting this form you agree to our Master Services Agreement and Privacy Policy.
Already have an account? Log in
Consider Worklets your easy button
A Worklet is an automation script, written in Bash or PowerShell, designed for seamless execution on endpoints – at scale – within the Automox platform. Worklet automation scripts perform configuration, remediation, and the installation or removal of applications and settings across Windows, macOS, and Linux.

AUTOMOX + WORKLETS™
Uncover new possibilities with simple, powerful automation.
By submitting this form you agree to our Master Services Agreement and Privacy Policy