We have been using System Monitoring for some time to have our monitoring system create, and close alert tickets in OTRS.
We have the following "out the box" fields set up:-
- Host
- Service
What I am looking to do, is catch an event ID which has the following format and store this as a dynamic field:-
Code: Select all
...
Original problem ID: 1463174
...
Code: Select all
Name = TicketFreeText3
Label = SystemMonitoring Event
Field type = Text
Object type = Ticket
Code: Select all
<ConfigItem Name="Nagios::Acknowledge::FreeField::Event" Required="0" Valid="1">
<Description Translatable="1">Name of the Dynamic Field for Event.</Description>
<Group>SystemMonitoring</Group>
<SubGroup>Nagios::Acknowledge</SubGroup>
<Setting>
<String Regex="">DynamicField_TicketFreeText3</String>
</Setting>
</ConfigItem>
Code: Select all
Key Value
TicketFreeText3 1
EventRegExp Original\s*problem\s*ID:\s+([A-Za-z0-9-]+)
Can anyone shed any light on what I may have done wrong, or anything else I would need to do to get this value stored as a Dynamic Field?