SystemMonitoring additional fiellds

Moderator: crythias

OTRS newbie
Posts: 11
Joined: 23 Feb 2016, 14:51
OTRS Version?: 5.0.14
Real Name: Duncan Mountford

SystemMonitoring additional fiellds

Postby duncan9562 » 15 Jan 2018, 16:12

Hi all,

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

Firstly, I created a text Dynamic Field as follows:-

Code: Select all

Name = TicketFreeText3
Label = SystemMonitoring Event
Field type = Text
Object type = Ticket

I have added the following into SystemMonitoring.xml:-

Code: Select all

    <ConfigItem Name="Nagios::Acknowledge::FreeField::Event" Required="0" Valid="1">
        <Description Translatable="1">Name of the Dynamic Field for Event.</Description>
            <String Regex="">DynamicField_TicketFreeText3</String>

...and I have also added the following into PostMaster::PreFilterModule###1-SystemMonitoring (SystemMonitoring → Core::PostMaster)

Code: Select all

Key               Value
TicketFreeText3    1
EventRegExp      Original\s*problem\s*ID:\s+([A-Za-z0-9-]+)

This is however proving not to work, and I am unsure why.

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?

Return to “General”

Who is online

Users browsing this forum: Mazowinski and 1 guest