Time Periods

Overview Copied

This page explains the concept, definition, and configuration of Time Periods, the Opsview Monitor items that use Time Periods, and the method to change these values. Time Periods in the context of notifications are not covered in this page.

Determine if a host is being actively monitored Copied

Time Periods are used within Opsview Monitor to determine when a Host or Service Check is being actively monitored and to identify when notifications must be sent.

For example, if a Host only needs to be monitored during office hours, then an administrator can create a Time Period called Working Hours that is 9 AM to 5 PM, Monday to Friday, and then apply this Time Period to the Host via a field called the Check Period.

Service Checks can be configured to have a fixed Time Period or to inherit the check period from the Host. This will apply to all Service Checks whether the Service Checks are individually applied in the Service Checks tab or in bulk via the addition of a Host template.

Modify Service Check during a certain time period Copied

Another usage of Time Periods within a Service Check context is that they allow the arguments of a Service Check to be modified during a certain Time Period. For example, if backups occur every evening between 1:00 AM and 4:00 AM, then the load average on the file servers will be higher than usual, which may trigger alerts and false errors.

To correct this, an administrator can create a Time Period called backups that runs from 01:00 to 04:00, Monday through Sunday. Then, override the load average check to use the following settings:

In the Time Period backups, the warning and critical levels are significantly higher. This means that if the load average exceeds 5 during the backups, the Service Check remains in an OK state and no alerts are sent. However, if the load average exceeds 5 after the backups passed the normal hours, the Service Check will transition to a WARNING state and alerts may be sent, provided the notifications profiles are configured accordingly.

By default in Opsview Monitor, there are four Time Periods:

To access those details, go to the Configuration > Time Periods menu. Once clicked, the Time Periods list page is displayed:

Time Periods list

To view the Time Periods details, either double-click on the relevant row or simply click Edit within the contextual menu for the Time Period:

Edit Time Periods

There are seven days within the Time Period, Sunday to Saturday. For each day, the hours can be defined in an HH:MM format and comma-separated for multiple ranges. For example, 00:00-24:00 means all day, 09:00-17:00 means 9 AM to 5 PM, and 00:00-09:00,17:00-23:59 means not 9 AM to 5 PM.

Note

The defined hours must not cross the midnight boundary. For example, 22:00-02:00 is not valid. Instead, use 22:00-23:59 on the first day and 00:00-02:00 on the following day.
["Opsview On-Premises"] ["User Guide"]

Was this topic helpful?