guides:reference:system_events:events_configuration
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
guides:reference:system_events:events_configuration [2020/03/24 16:13] – [Attributes explained] yspeerte | guides:reference:system_events:events_configuration [2024/07/03 12:31] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{indexmenu_n> | ||
+ | |||
+ | ===== System Events configuration ===== | ||
+ | |||
+ | The System Events configuration file is '' | ||
+ | |||
+ | This configuration file consists of two parts, the top section defines the events and what effect they have. The second part defines the event signal types. This article explains the top section. | ||
+ | |||
+ | The file is formatted in the Perl syntax and contains the definition of the two hashes making up the aforementioned sections. The '' | ||
+ | |||
+ | This hash has three levels, the first level is referred to as the //CLASS// of the event, the second level its //STATE// and the third level has the various // | ||
+ | |||
+ | < | ||
+ | # | ||
+ | # CLASS STATE ATTR VALUE | ||
+ | # db_conn_state => { | ||
+ | # name => connection_status | ||
+ | # error => { # defines the ' | ||
+ | # | ||
+ | # | ||
+ | # # 0=clear, 1=low .. 4=high | ||
+ | # | ||
+ | # # 0=everyone, 1=browser .. 5=manager | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | </ | ||
+ | |||
+ | ==== Attributes explained ==== | ||
+ | |||
+ | As Events are generated by the monitors, three vales are passed into the System Events. \\ | ||
+ | The first is the CLASS of the event. This is the internal name of the monitor. In the example above it is the '' | ||
+ | The second is the STATE of the event. Its value depends on the monitor and what states it can be in. In the example is shown the '' | ||
+ | The third and last value of the event is the message. This message will be used in the notifications and signalling to inform what the event is all about. | ||
+ | |||
+ | The customization of the events in this configuration will usually only affect the attributes of the event. They specify for who, where and how the notifications are displayed and which signalling takes place. As these attributes are defined per monitor and per state, the event notifications can be tailored to a high degree. | ||
+ | |||
+ | ^ Attribute | ||
+ | |**msg_type**|3|The message-type determines if the notification-bar will show the event on the login screen (1) only, after login (2) only, or both (3). \\ When events are to be displayed before login it will be displayed for all users, the user_level setting has no effect before logging in| | ||
+ | |**severity**|4|The numeric value of the severity-level of this event is used to perform a lookup to find the severity name and colour of the severity. See the paragraph below on " | ||
+ | |**user_level**|2|Not all messages are useful for all users. Some are relevant only for ' | ||
+ | |**signal_type**|' | ||
+ | |**signal_int**|1800|When this value is set to ' | ||
+ | |||
+ | |||
+ | ==== Class mapping ==== | ||
+ | |||
+ | One additional setting in the Events configuration has been ignored - up to now. The '' | ||
+ | |||
+ | Where '' | ||
+ | |||
+ | It is suggested not to modify these monitor class to event status mappings unless there is good understanding of the various states each monitor produces. | ||
+ | |||
+ | |||
+ | ==== Severity customization ==== | ||
+ | |||
+ | By default four severity levels exist to assign to System events: ' | ||
+ | |||
+ | Using the 'Admin - Lookup' | ||
+ | |||
+ | The severity numeric value is used to assign to the '' | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | |||
+ | ==== Syntax check ==== | ||
+ | |||
+ | **CLI changes** \\ | ||
+ | After making modifications it is recommended to check the syntax of '' | ||
+ | |||
+ | < | ||
+ | $ cd / | ||
+ | $ go chk system_events.conf | ||
+ | -- perl -cw current dir | ||
+ | system_events.conf syntax OK | ||
+ | </ | ||
+ | |||
+ | **System configuration tool** \\ | ||
+ | If changes to the configuration file were made using the 'Admin - System - Edit configs' | ||
+ | |||
+ | Since most system-monitoring is performed by the '' | ||
+ | |||
+ | |||