4.59 SystemUpTime

Use this Knowledge Script to monitor the system up time for a UNIX server. This Knowledge Script tracks the number of hours that the computer has been operational since it was last rebooted. If the computer reboots within the monitoring interval, AppManager raises an event.

Given a threshold of max hours, this Knowledge Script will trigger an event if the uptime of the system exceeds the given threshold in hours. This event will occur once per Knowledge Script restart. If the Knowledge Script is run in intervals, and in an interval this event is triggered once, it will not be triggered in the subsequent iterations.

This Knowledge Script now collects data points for the previous minute, 5 minute and 15 minute load averages, as well as triggering events when the corresponding load averages exceeds the given threshold.

This script allows you to specify whether you want AppManager to raise events for reboots when the computer is in maintenance mode.

4.59.1 Resource Object

UNIX computer icon

4.59.2 Default Schedule

The default interval for this script is Every hour.

4.59.3 Setting Parameter Values

Set the following parameters as needed:

Description

How to Set It

Event if system rebooted? (y/n)

Set to y to raise events. The default is The default is y.

Threshold for system uptime event in hours (-1 to disable)

Enter a threshold for the system uptime event in hours. To disable this parameter, enter -1.

Threshold for system load average for the last 1 min (-1 to disable)

Enter a threshold for the system load average for the last 1 minute. To disable this parameter, enter -1.

Threshold for system load average for the last 5 min (-1 to disable)

Enter a threshold for the system load average for the last 5 minutes. To disable this parameter, enter -1.

Threshold for system load average for the last 15 min (-1 to disable)

Enter a threshold for the system load average for the last 15 minutes. To disable this parameter, enter -1.

Collect uptime hours data? (y/n)

Set to y to collect data for graphs and reports. If set to y, the script returns the number of hours the system has been up. The default is n.

Collect data for last 1 min load average? (y/n)

Set to y to collect data for graphs and reports. If set to y, the script returns the number of hours the system has been up. The default is n.

Collect data for last 5 mins load average? (y/n)

Set to y to collect data for graphs and reports. If set to y, the script returns the number of hours the system has been up. The default is n.

Collect data for last 15 mins load average? (y/n)

Set to y to collect data for graphs and reports. If set to y, the script returns the number of hours the system has been up. The default is n.

Event severity level

Set the event severity level, from 1 to 40, to indicate the importance of the event. The default is 8.

Ignore reboots during maintenance mode? (y/n)

Set to y to prevent AppManager from reporting events when the computer reboots while in maintenance mode. The default is n.

Event severity for internal failure

Set the event severity level, from 1 to 40, to indicate the importance of an event in which this job experienced an internal error. The default is 5.

Enable debugging? (y/n)

Set to y to enable debugging. The default is n.