we're using the SystemMonitoring plugin for integration of Nagios within OTRS. Every time a nagios mail arrives at OTRS, the following error is displayed in the system protocol, with XXXXX being the hostname of monitored host in question.
Code: Select all
error OTRS-otrs.PostMasterMailbox.pl-30 Could not find any CI with the name 'XXXXX'.
Below our SystemMonitoring configuration:
Code: Select all
$Self->{'Nagios::Acknowledge::HTTP::Password'} = '*******';
$Self->{'Nagios::Acknowledge::HTTP::User'} = '********';
$Self->{'Nagios::Acknowledge::HTTP::URL'} = 'http://********/nagios/cgi-bin/cmd.cgi?cmd_typ=<CMD_TYP>&cmd_mod=2&host=<HOST_NAME>&service=<SERVICE_NAME>&sticky_ack=on&send_notification=on&persistent=on&com_data=<TicketNumber>&btnSubmit=Commit';
$Self->{'SystemMonitoring::LinkTicketWithCI'} = '1';
$Self->{'SystemMonitoring::SetIncidentState'} = '1';
$Self->{'PostMaster::PreFilterModule'}->{'1-SystemMonitoring'} = {
'ArticleType' => 'note-report',
'CloseActionState' => 'closed successful',
'ClosePendingTime' => '172800',
'CloseTicketRegExp' => 'OK|UP',
'DefaultService' => 'Host',
'FreeTextHost' => '1',
'FreeTextService' => '2',
'FreeTextState' => '1',
'FromAddressRegExp' => 'nagios@inet.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+)'
};
Regards,
Jonas Meurer