OTRS SystemMonitoring Check_MK/Nagios und auto close

Hilfe zu Znuny Problemen aller Art
Locked
limogesicht
Znuny newbie
Posts: 1
Joined: 29 Jul 2014, 09:46
Znuny Version: 3.3.8

OTRS SystemMonitoring Check_MK/Nagios und auto close

Post by limogesicht »

Hallo zusammen,

ich verzweifle momentan an der Konfiguration des SystemMonitoring.

Folgende Konfiguration:

Code: Select all

$Self->{'PostMaster::PreFilterModule'}->{'1-SystemMonitoring'} =  {
  'ArticleType' => 'note-report',
  'CloseActionState' => 'closed by nagios',
  'ClosePendingTime' => '60',
  'CloseTicketRegExp' => 'OK|UP',
  'DefaultService' => 'Host',
  'FreeTextHost' => '1',
  'FreeTextService' => '2',
  'FreeTextState' => '1',
  'FromAddressRegExp' => 'e@mail.de',
  'HostRegExp' => '\\s*Host:\\s+(.*)\\s*',
  'Module' => 'Kernel::System::PostMaster::Filter::SystemMonitoring',
  'NewTicketRegExp' => 'CRITICAL|DOWN',
  'SenderType' => 'system',
  'ServiceRegExp' => '\\s*Service:\\s+(.*)\\s*',
  'StateRegExp' => '\\s*State:\\s+(\\S+)'
};
Die nagios-Mails von Check_MK/OMD schauen wie folgt aus:

Code: Select all

Host:     host1
Alias:    host1
Address:  123.45.67.89
Service:  TSM-STATUS
State:    CRITICAL
Lastservicestate: CRITICAL
Command:  check_mk-local
Output:   CRIT - CRITICAL - Backup-Status unknown
Perfdata: RC=2;1;2;0;

Code: Select all

Host:     host1
Alias:    host1
Address:  123.45.67.89
Service:  TSM-STATUS
State:    OK
Lastservicestate: CRITICAL
Command:  check_mk-local
Output:   OK - Backup zeitnah gelaufen
Perfdata: RC=0;1;2;0;
Der kritische Zustand wird auch wunderbarst im OTRS zu einem Ticket verwandelt. Allerdings wird das Ticket nicht automatisch geschlossen.

Code: Select all

Jul 29 09:20:03 localhost OTRS-otrs.PostMasterMailbox.pl-24[25954]: [Notice][Kernel::System::PostMaster::Filter::SystemMonitoring::_LogMessage] SystemMonitoring Mail: New Ticket - Host: host1,State: CRITICAL, Service: TSM-STATUS
Jul 29 09:40:03 localhost OTRS-otrs.PostMasterMailbox.pl-24[26042]: [Notice][Kernel::System::PostMaster::Filter::SystemMonitoring::_LogMessage] SystemMonitoring Mail: Mail Dropped, no matching tcket found, no open on this state  - Host: host1, State: OK, Service: TSM-STATUS
Der Status "closed by nagios" ist natürlich auch als solcher vorhanden und aktiv. Ich verzweifle langsam echt daran.
Locked