Configuring local monitoring of Solaris OS
This topic provides information about how to configure local monitoring of the Solaris operating system.
Configuration video
Click to view a short video (4.19) of how to configure Solaris OS for local and remote monitoring.
Configuration details
To configure local monitoring of Solaris hosts, set the following preferences on the Add Monitoring Configuration dialog.
Monitoring Solution | Version | Monitor Profile | Monitor Type |
---|---|---|---|
Solaris | 1.0.00.02 | Solaris Monitoring | Solaris Local OS |
Click Add to configure a new host for monitoring.
Field | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Monitor Type Configuration | |||||||||||||||||||||||||||||
* indicates you can configure filters for this monitor type. |
In Virtualization, you can create filters for Logical Domains and Zones.
Logical Domain filtering
Field | Description |
---|---|
LDom Filters | |
Exclude LDom | Enter the logical domain name or a regular expression to filter logical domains that you want to exclude from monitoring. To exclude multiple logical domains, enter a comma-separated list of regular expressions. |
Include LDom | Enter the guest name or a regular expression to filter guests that you want to include for monitoring. To include multiple logical domains, enter a comma-separated list of regular expressions. By default all the logical domains are included for monitoring. |
Zone filtering
Field | Description |
---|---|
Exclude Local Zones | Enter the zone name or a regular expression to filter zones that you want to exclude from monitoring. To exclude multiple zones, enter a comma-separated list of regular expressions. |
Include Local Zones | Enter the zone name or a regular expression to filter zones that you want to include for monitoring. To include multiple zones, enter a comma-separated list of regular expressions. By default all the zones are included for monitoring. |
In Services filters you can include or exclude Services based on the Service status or on Service name.
Field | Description |
---|---|
Exclude Service State | Select or clear these fields to exclude Services based on their status.
|
Include/Exclude Service | |
Include Service | Enter the service name or a regular expression to include multiple services for monitoring. Multiple regular expressions can be separated by using a pipe separator. By default, all the services are included for monitoring. |
Exclude Service | Enter the service name or a regular expression to exclude multiple services from monitoring. Multiple regular expressions can be separated by using a pipe separator. |
In process monitoring, you can monitor the Solaris non-global zone processes from a Solaris global zone.
Field | Description |
---|---|
Process Label | Enter a display name (process label) for processes to be monitored. The display name cannot contain special characters ( . [ ! @ # $ % ? { } ^ \ \ / | + = & * ( ) ) ; ] ) and blank spaces. The label can contain a maximum of 100 characters. If you want to monitor a process running inside a non-global zone from a global zone, the process label must be in the following format: |
Process Name String | Enter a string that matches names of processes to be monitored. Input may also be a regular expression pattern. For example:
Note: PATROL monitors all processes that match the string you type in this field. When you enter text in this field, you may end up monitoring multiple processes. For example, if you type vi in this field, PATROL monitors processes named vi, view, and previous. |
Minimum Count | Select a value to set the minimum number of process instances that may be running on the local computer or in the host group. To monitor multiple instances of the same process, this value must be set to 2 or greater. If the number of running process instances falls below this value, PATROL issues an alert. |
Maximum Count | Select a value to set the maximum number of process instances that may be running on the local computer or in the host group. If the number of running process instances exceeds this value, PATROL issues an alert. Note: The value in the Maximum Count field must be equal to or greater than the value in the Minimum Count field. |
Acceptable process owner | Enter the user IDs for the accounts that may own the process. Separate multiple user IDs with spaces. Regular expressions are supported. |
Use Process Owners for Filtering | Select this check box to filter processes based on the process owners. Note: Because the process filtering for the processes is based on owners, the owner of the processes is always a subset of the provided owner set. Thereby, the Process ownership check (OwnerCheck) attribute is deactivated when the Use Process Owners for Filtering check box is selected. |
Parent Process ID Must Be 1 |
Select this check box if the processes must have their parent process id as 1. A process with a PPID of 1 is owned by init, or the UNIX scheduler. |
Filter Processes with Parent Process ID 1 | If you select this check box, only the processes having parent process ID as 1 are filtered. If you do not select the check box, the processes are filtered irrespective of their parent process ID. The processes are not filtered by parent process ID 1 if the Parent Process ID Must Be 1check box is cleared. If you select the Parent Process ID Must Be 1 check box, and if you filter processes with parent process ID 1, the Parent PID is 1 (ParentPID1) attribute is deactivated. |
Process Alert Options | |
Alert Delay Count | Select a value to set the number of collection intervals that this host defers an alert while it waits for the process count to be reestablished across the host or group. If you delay the alert, the system has time to detect that a process has died and restart it automatically before PATROL issues an alarm. |
Alert State | Click the drop-down list button in the Alert State field and select the state change (ALARM or WARNING) that occurs when the minimum or maximum process count is exceeded and the alert delay count reaches 0. The state change applies to the following attributes: Note: The alert thresholds for Process count check (CountCheck) must not be modified in order for the product to work as designed. Alerts for process presence monitoring are generated based on the Process count check (CountCheck) attribute, which has the following thresholds defined:
|
Process Restart Options | |
Restart Automatically | Select this option if you want the KM to automatically restart a process when it detects that the process count is less than the set minimum. No - Indicates that the process must be restarted manually if it stops. Yes - Indicates that the process is restarted automatically if BMC PATROL detects it has stopped. If you select this option, the KM attempts to restart the process when it detects that the process instance count has fallen below the specified minimum threshold. The KM uses the value in the Command Execution Attempts field to determine how many times it tries to restart a process. Note: To restart a process automatically, you must provide a start command and a command execution account user name and password in the appropriate fields on this configuration screen. |
Command Execution Attempts | Enter a value in this field to set the number of times the host attempts to run a Start Process or Stop Process command before it stops trying to run the command. The value that you enter in this field must be 1 or greater. |
Start Command | Enter the command string that starts the process instance. You must specify a command execution user account and password if you want to use the Start command. |
Stop Command | Enter the command string that stops the process instance. You must specify a command execution user account and password if you want to use the Stop command. |
Command Execution User Name | Enter the user ID under which the command is executed. You must specify a command execution user account and password if you want to use the Start and Stop commands. |
Command Execution Password | Enter the password for the user ID under which the command is executed. You can leave this field blank; the KM accepts a null password. You must specify a command execution user account and password if you want to use the Start and Stop commands. |
Group Monitoring options | |
Enable process monitoring on host groups | For local monitoring, if you want to monitor a groups of hosts, select this check box. If you select this check box, the configured process is monitored for the group and the minimum and maximum counts are taken as the total number of process instances running on all the hosts that you would add to the group. |
If you want to monitor a group of hosts, to add the hosts to the host group, in the Host Group Members section, click Add. Enter the following details on the Host Group Members dialog.
Field | Description |
---|---|
Host name | Enter the host name of the computer on which the PATROL Agent is running. |
Port Number | Enter the port of the computer on which the PATROL Agent is running. |
Command Execution User Name | Enter the user ID to connect to the PATROL Agent on the host computer. |
Command Execution Password | Enter the password to connect to the PATROL Agent on the host computer. |
Process configuration examples
The following table demonstrates how specific filters are processed by the filter rules:
Scenario | Example | Comments |
---|---|---|
To receive an alert if the process count drops below |
Process Label: bash Process Name String: bash.* Minimum count: 5 Maximum count: 15 |
None |
To monitor processes started by authorized users and |
Process Label: bash Process Name String: bash.* Minimum count: 5 Maximum count: 15 Acceptable process owner: abc |
If "xyz" user starts bash process the Process ownership check (OwnerCheck) attribute raises an alarm. |
To monitor process started by a specific user and exclude processes started by other users |
Process Label: bash Process Name String: bash.* Minimum count: 5 Maximum count: 15 Acceptable process owner: abc|pqr|xyz Use Process Owners for Filtering?: Select the checkbox |
A pipe separated list or a regular expression of acceptable process owners. Here, abc, pqr and xyz are acceptable process owners. |
To monitor processes whose Parent Process ID is one | Process Label: bash Process Name String: bash.* Minimum count: 5 Maximum count: 15 Parent Process ID must be 1: Select the checkbox Filter Processes with Parent Process ID 1: Do not select the checkbox |
This configuration is usually suitable for system processes with parent process ID 1. If for some process, the parent PID is not 1, ProcessParentPID1 would be in WARN/ALARM state. |
To filter processes whose Parent Process ID is one | Process Label: bash Process Name String: bash.* Minimum count: 5 Maximum count: 15 Parent Process ID must be 1: Select checkbox Filter Processes with Parent Process ID 1: Select checkbox |
Exclude all processes which match the Process Name String criteria but whose parent PID is not 1 |
To delay alert by 'N' number of collections | Process Label: bash Process Name String: bash.* Minimum count: 5 Maximum count: 15 Alert Delay Count: 3 Alert State: Warning or Alarm |
This delays an alert if some process violates the set minimum or maximum limit. |
To avoid delay and get immediate alert if a process violates configured minimum or maximum thresholds |
Process Label: bash Process Name String: bash.* Minimum count: 5 Maximum count: 15 Alert Delay Count: 0 Alert State: Warning or Alarm |
None |
To monitor processes that begin with /usr/sbin | Process Label: bash sys_processes Process Name String: bash.* ^/usr/sbin |
Monitors all the processes that begin with /usr/sbin Monitor processes like:
|
To monitor same processes on multiple hosts as a group | Group consists of the following hosts: Host 2: <name> Host 3: <name> Group: |
In this scenario, the alerts will be generated if the minimum count is less than 15 and maximum count exceeds 30. It means that maximum and minimum counts are considered for the group and not an individual host. |
In FileSystem filtering you can include or exclude FileSystems based on the FileSystem name or type.
Field | Description |
---|---|
Exclude Filesystem | Enter the filesystem name or a regular expression to exclude filesystems from monitoring. To exclude multiple filesystems, enter a comma-separated list of regular expressions. To exclude the root filesystem use the If the rules are equally specific (if you exclude a file, and include the same file) then exclude takes precedence over include. |
Include Filesystem | Enter the filesystem name or a regular expression to include filesystems for monitoring. To include multiple filesystems, enter a comma-separated list of regular expressions. To include the root filesystem use the |
Type Based Filters | |
FileSystem types to filter | Enter the FileSystem type that you want to filter. FileSystem types are: DEV, FD, DEVFS, PROC, LOFSPROCFS, CTFS, FIFOFS, FDFS, MNTFS, NAMEFS, OBJFS, SHAREFS, SPECFS, SWAPFS |
Instance Persistence (Type Based) | |
Ignore Persistence | Enter the FileSystem types for which persistence monitoring must be denied. The corresponding filesystem instances are destroyed from PATROL Agent. The Mount status (MountStatus) attribute is not set to alarm if the filesystem is unmounted. If such filesystems are mounted again, the instances are rediscovered. Multiple FileSystems can be separated by using a space character. |
In Zpool filtering, you can include or exclude one or multiple Zpools from monitoring.
Field | Description |
---|---|
Zpool Filters | |
Exclude Zpool | Enter the Zpool name or a regular expression to exclude Zpools from monitoring. To exclude multiple Zpools, enter a comma-separated list of regular expressions. |
Include Zpool | Enter the Zpool name or a regular expression to include Zpools for monitoring. To include multiple Zpools, enter a comma-separated list of regular expressions. By default, all the discovered Zpools are included for monitoring. |
Field | Description |
---|---|
Disk Filters | |
Exclude Disk | Enter the disk name or a regular expression to filter disks that you want to exclude from monitoring. To exclude multiple disks, enter a comma-separated list of regular expressions. If the rules are equally specific (if you exclude a disk, and include the same disk) then exclude takes precedence over include. |
Include Disk | Enter the disk name or a regular expression to filter disks that you want to include for monitoring. To include multiple disks, enter a comma-separated list of regular expressions. By default all the disks are included for monitoring. |
Comments
Log in or register to comment.