Welcome to docs.opsview.com

Differences

This shows you the differences between two versions of the page.

opsview4.6:exceptions [2014/09/09 12:19] (current)
Line 1: Line 1:
 +====== Exceptions ======
 +It is possible to provide a different set of arguments to a service check within Opsview, based upon the host using the service check or a time period. These exceptions are known as 'host exceptions' and 'timed exceptions' respectively.
 +
 +After creating an exception and entering the new arguments within the text field, perform an Opsview configuration reload. The new arguments will be used instead of the default ones in the service check definition.
 +
 +===== Host exceptions =====
 +
 +It is possible at the host or the host template selection screen for services to monitor to make an exception for the arguments passed to the plugin.
 +
 +The initial use case was for check_load, where a different load average was desired for different hosts.
 +
 +Host exceptions can be added via the Host configuration by clicking the 'Monitors' tab, finding the appropriate service check and clicking the 'add exception' {{:opsview4.6:exception4.png|}} icon.
 +
 +{{:opsview4.6:service-override.png|}}
 +
 +**Note**: The exceptions only change the parameters to the plugin at plugin execute time. There is no change to the service check's notification period.
 +
 +===== Timed exceptions =====
 +It is also possible to provide a different set of arguments to a plugin on a timed basis.
 +
 +The initial use case was for the check_load service check, where the load is expected to be higher overnight.
 +
 +Timed exceptions (timed overrides) can be added via the Host configuration by clicking the 'Monitors' tab, finding the appropriate service check and clicking the 'add timed exception' {{:opsview4.6:timed_exception4.png|}} icon.
 +
 +Choose the timeperiod and the new arguments - these will be used when appropriate.
 +
 +{{:opsview4.6:service-override-timed.png|}}
 +
 +The timeperiod exception must be a subset of the normal check timeperiod for the service (eg, "24x7" timeperiod, with a timed override period of "nonworkhours")
 +
 +===== Listing exceptions =====
 +
 +After performing an Opsview configuration reload, it is possible to list the exceptions that are in place for a given service check.
 +
 +Navigate to the edit service check screen and the 'service check' tab. At the bottom of the screen, the number of exceptions in force will be shown in a clickable link - just above the 'submit changes' button:
 +
 +{{:opsview4.6:service-override-serviceconfig.png|}}
 +
 +Clicking the link will list the exceptions that exist for the service check - as shown below.
 +
 +{{:opsview4.6:service-exceptions-details.png?800|}}
Navigation
Print/export
Toolbox