Forrester Total Economic Impactâ„¢ study finds Edwin AI delivered a 313% ROI for composite organization.

Read more

The Linux Remediation Monitoring package provides SSH-based remediation for Linux hosts, enabling remote execution of commands to manage process lifecycles and system availability.

These LogicModules use standard Linux utilities to identify, terminate, and launch processes, and to reboot systems, improving service availability and reducing mean time to resolution (MTTR).

Remediation actions run over SSH using password or public key authentication and execute in the context of the configured SSH user.

The LogicModules package supports the following remediation capabilities:

  • Terminate processes using kill (graceful or forceful)
  • Launch processes using nohup for background execution
  • Reboot systems using the reboot command

Process targeting uses the following rules:

  • remediation.process must match the full command line, including arguments
  • Matching is exact and does not support partial or fuzzy matching

Note: Process matching is exact. The remediation.process value must include the full command and arguments. Partial matches do not identify the target process.

Remediation actions run under the configured SSH user. Actions affecting other users or system-level operations may require root or passwordless sudo.

Note: Insufficient privileges (for example, missing sudo access) cause actions such as process termination or reboot to fail.

Remediation behavior is controlled by host properties that govern duplicate handling and process termination. By default, duplicate processes are not launched if an existing instance is detected, unless explicitly allowed. Process termination supports both graceful signals and forceful termination using SIGKILL, and can target either a single process or all matching processes.

Warning: Forceful termination using SIGKILL immediately stops a process without enabling cleanup operations and can cause data corruption or incomplete transactions.

This package operates on Linux systems that support OpenSSH access, standard utilities (for example, ps, kill, nohup, reboot), and non-interactive command execution (for example, exec). Most modern Linux distributions are supported, although restricted shells or limited environments can impact functionality.

Requirements for Linux RemediationSources Monitoring

To use Linux Remediation Monitoring, ensure the following:

  • A LogicMonitor user with Manage permission for modules and resource permissions for ‘Remediation Source’ settings.
  • SSH access is enabled on the target host
  • The LogicMonitor Collector can reach the host over port 22
  • Authentication is configured using the following:
    • Username and password (remediation.ssh.user, remediation.ssh.pass)
    • Public key authentication (remediation.ssh.publickey)
  • The remote system includes the following utilities: ps, kill, nohup, reboot
  • The configured SSH user has sufficient privileges to execute remediation commands

Recommendation: Use a dedicated remediation account instead of standard monitoring credentials.

Adding Resources into Linux RemediationSources Monitoring

Add the target Linux host into LogicMonitor. For more information, see Adding Resources.

Ensure the following during setup:

  • The assigned Collector can establish SSH connectivity
  • Required host properties are configured
  • The system supports standard Linux process management commands

Assigning Properties to Resources

Configure remediation behavior using the following properties:

For more information, see Resource and Instance Properties.

PropertyDescriptionRequired For
remediation.ssh.userSSH username used to execute remediation commandsAll
remediation.ssh.passSSH password for authentication
NOTE: Optional if using key
All
remediation.ssh.publickeySSH public key for authenticationNOTE: Optional if using passwordAll
remediation.processExact process command used for matching and executionKill, Launch
remediation.process.duplicateEnables duplicate process creation when launchingLaunch
remediation.sigkillEnables forceful process termination (for example,SIGKILL)Kill
remediation.killallTerminates all matching processes instead of the first matchKill

Troubleshooting for Linux RemediationSources Monitoring

The following table outlines common issues and guidance:

IssueInformation
SSH Authentication FailuresVerify credentials and ensure the SSH user has appropriate permissions
Permission Denied ErrorsEnsure the user can execute required commands (for example, reboot, kill) without interactive prompts
Process Not FoundConfirm remediation.process exactly matches the running process, including argumentsVerify process matching using ps aux | grep <process>. Confirm the process is running and that the full command line, including arguments, matches remediation.process. Differences in arguments or execution path can prevent detection.
Debug Mode RisksRunning RemediationSources in debug mode still executes actions and is not a safe simulation

Warning: Warning: Running RemediationSources in debug mode still executes remediation actions. Debug mode is not a safe or read-only simulation and can make real changes to the environment.

Use the following troubleshooting steps:

  • Review RemediationSources output to validate process detection and remediation execution. Check for mismatches in process names and any execution errors.
  • Ensure sudo configurations support non-interactive execution. Remediation actions fail if the SSH user is prompted for a password or if sudo requires a TTY. Configure passwordless sudo or update sudoers rules as needed.

Import LogicModules into Monitoring

Install all Linux RemediationSources LogicModules from the LogicMonitor’s Module Exchange. For more information, see the list of LogicModules in Package. If these LogicModules are already present, ensure you have the most recent version of each module. 

Data collection automatically starts when the LogicModules are imported.​

LogicModules in Package

LogicMonitor’s package for Linux RemediationSources Monitoring consists of the following LogicModules. For full coverage, import the following LogicModules into your platform:

Display NameTypeDescription
Kill Linux ProcessRemediationSourceKills a process on a Linux system.
Launch Linux ProcessRemediationSourceLaunches a process on a Linux system via nohup.
Restart Linux DeviceRemediationSourceRuns the reboot command on a Linux system.

When setting static datapoint thresholds on the various metrics tracked by this package’s DataSources, LogicMonitor follows the technology owner’s best practice KPI recommendations.

Recommendation: If necessary, adjust these predefined thresholds to meet the unique needs of your environment. For more information on tuning datapoint thresholds, see Static Thresholds for Datapoints.

14-day access to the full LogicMonitor platform