TRAP is a notification element, that sends a trap message (Trap-PDU) from the monitoring system (agent) to the network management base station (SNMP manager).
Trap The trap element supports the formation of SNMP trap messages ver. 1, 2c, and 3.
Info | ||
---|---|---|
Warning | Внимание | Trap element is meaningful only in conjunction with the mechanism of the logic of the monitoring system, that means, if the Trap is not included in any of the existing logic, then an element Trap will not generate and send trap messages. |
Managing Traps
Создание, настройка и удаление элементов типа Trap в настоящее время возможна только через веб-интерфейс.
Строка описания трап-сообщения
При отправке трап-сообщения в теле формируется строка описания видаIt is possible to create, configure, and delete Trap elements only via the web interface. See the documentation for more details: SNMP Traps notification.
Trap string description line
When the user sends a trap message, a trap string description is formed, for example:
Code Block |
---|
Trap (name: <name> trap_1, ID: <id> 602001) was worked. Time: 13 10:37 40:53 32 20172016/0311/2219 Logic: 'Dry Trap' 'Logic_1', Element: 'Dry-1' 'Onboard Temperature', in state: 'alarm' 'high alarm', value: '1' |
где:
- <name> - имя элемента Trap в поле ctlAllElementName таблицы ctlAllElementsTable;;
- <id> - ID элемента Trap в поле ctlAllElementID таблицы ctlAllElementsTable;
Изменить имя элемента Trap можно в таблице ctlAllElementsTable
Кроме того в теле сообщения передаются следующие переменные:
...
Переменная
...
Описание
...
Пример содержимого полученного трапа:
...
'25.00' |
where:
trap_1 - trap element name;
602001 - trap element ID.
You can change the name of the Trap element in the table ctlNotifiers.ctlNotifiersTrapsTable.ctlNotifiersTrapsEntry or in the system web interface.
In addition, the following variables are passed in the message body:
Variables | Description |
---|---|
.1 | Description of the logic scheme that has triggered |
.2 | Readings of sensors in the logic scheme |
.3 | Logic scheme response time |
.4 | Name of the logic scheme |
.5 | Name of the sensor whose state led to the triggering of the logic circuit |
.6 | The state of the sensor that triggered the operation of the logic circuit |
.7 | The value measured by the sensor or the logic level |
.8 | The ID of the sensor that triggered the logic circuit |
.20 | The ID of the SNMP trap |
.21 | Name of the SNMP trap |
Example of the contents of the received trap:
...