Linux Script Monitor
The Linux Script Monitor is a high-level monitor that runs a user-defined script or command against a Regular Expression.
The entered script must exist and must use the absolute path, not a relative path.
Alerts are raised if the selected Regular Expression is matched.
Adding Linux Script rule criteria
- From the Linux system in the Systems panel of Central Configuration Manager, select Linux Script Monitor and click Add Rule.
- From the Add Rule Detail dialog, click Criteria. Click Add Criteria to open the Script Criteria dialog.
There are three pages to complete when adding Linux Script rule criteria.

Script Parameters section
This section defines how the command or script to be run and Regular Expression used.
Command/Script
Type the command or script to be run.
Regular Expression
Enter the details of the Regular Expression against which the command or script is run. The default entry is '.+'.

Criteria Alert Details section
Fields in this section define alert settings that override the settings made on the Alert page at Rule level. This provides a criteria specific alert message to be generated.
Override Rule Default
Click Override Rule Default to specify that the entries on this page override the default Alert page settings at Rule level. From the drop-down menu, select the alert warning level.
Alert Text
Enter the actual text of the alert or use the available Substitution Variables to construct the message text of the alert.

Alert Example
Displays an example of how the Alert Text will read using the selected Substitution Variables and user-entered text.

Advanced Settings section
Omit Lines Containing Script Process Id From Results
Select this option to remove any lines that contains the ID of the script process that was used to generate the result. This prevents any false results being generated by the process that is performing the actual monitoring.
Testing
Once the Subsystem parameters have been defined for the criteria, click Test to ensure that the returned results are the same as would be expected if the rule was live.
Click OK to define and confirm the subsystem parameters as criteria for this rule.