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+)'
};
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;
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