/Linux-Agent-Maintenance-Mode

Linux Agent Maintenance Mode

Primary LanguagePowerShell

Linux Agent Maintenance Mode MP

MP and Visual Studio Files

Introduction

Management Pack used to start, extend, or stop maintenance mode for a Unix/Linux computer from the agent.

Maintenance mode is controled by writing entries to a log file (/var/log/scom-agentmm.log) on the agent.

Log File Entries

The log file entries must follow a set format.

Starting/Extending Maintenance Mode

#TIMESTAMP#,START,#DURATION#,#COMMENT#,#REASON#

Valid Maintenance Mode Reasons

  • ApplicationInstallation
  • ApplicationUnresponsive
  • LossOfNetworkConnectivity
  • PlannedApplicationMaintenance
  • PlannedHardwareInstallation
  • PlannedOperatingSystemReconfiguration
  • PlannedOther
  • SecurityIssue
  • UnplannedApplicationMaintenance
  • UnplannedHardwareMaintenance
  • UnplannedOther

Example

01/06/2024 06:30,START,60,Testing MM,PlannedApplicationMaintenance

Stopping Maintenance Mode

#TIMESTAMP#,STOP

Example

01/06/2024 06:30,STOP