14.43 SystemUpTimePie

Use this Knowledge Script to generate a report detailing the uptime and downtime of monitored computers. This report illustrates uptime and downtime using a pie chart. You can enter a minimum threshold for uptime. Any values below the threshold are colored red in the table in the report.

Uptime and downtime are illustrated in hours and minutes, as well as the percentage of the monitoring interval during which a computer is running or not. For example, if during a 24-hour monitoring interval, the computer is running for 18 hours and not running for six hours, the uptime and downtime are represented as:

  • Uptime: 18 hours 0 minutes

  • Downtime: 6 hours 0 minutes

  • Uptime: 75%

  • Downtime: 25%

This report uses data collected by the NT_SystemUpTime and UNIX_SystemUpTime Knowledge Scripts. In order to have accurate data for this report, schedule these scripts to run every 5 minutes.

Uptime and downtime are calculated during scheduled maintenance. Ad hoc maintenance is considered as downtime, and is included in all calculations.

14.43.1 Resource Object

Report agent

14.43.2 Default Schedule

The default schedule is Run once.

14.43.3 Setting Parameter Values

Set the following parameters as needed:

Parameter

How To Set It

Data source

Select computer(s)

Filter the data for your report by computer.

Select time range

Filter the data for your report by a specific or sliding time range. The default is Sliding.

Select peak weekday(s)

Filter the data for your report by the days of the week.

Uptime threshold %

Specify a value for the minimum uptime threshold. Any value below this threshold is colored red in the table.

Use any value less than 100. You can use decimals.

Report settings

Include parameter help card?

Set to y to include a table in the report that lists parameter settings for the report script. The default is y.

Include table/chart/both?

Select the type of datastream values you want to include in the report:

  • Table (table only)

  • Chart (chart only)

  • Both (table and chart)

Chart width

Provide a value for the width in pixels of the pie chart image.

Chart height

Provide a value for the height in pixels of the pie chart image.

Select output folder

Set parameters for the output folder.

Add job ID to output folder name?

Set to y to append the job ID to the name of the output folder.

A job ID helps you correlate a specific instance of a Report Script with the corresponding report.

The default is n.

Select properties

Set miscellaneous report properties as desired.

Add time stamp to title?

Set to y to append a time stamp to the title of the report, making each title unique. The time stamp contains the date and time the report was generated.

A time stamp allows you to run consecutive iterations of the same report without overwriting previous output.

The default is n.

Event notification

Event for report success?

Set to y to raise an event when the report is successfully generated. The default is y.

Severity level for report success

Set the event severity level, from 1 to 40, to indicate the importance of the event. The default is 35 (magenta level indicator).

Severity level for report with no data

Set the event severity level, from 1 to 40, to indicate the importance of the event. The default is 25 (blue level indicator).

Severity level for report failure.

Set the event severity level, from 1 to 40, to indicate the importance of the event. The default is 5 (red level indicator).