Integration OTRS and Nagios

Moderator: crythias

Locked
Faris Zaidi
Znuny newbie
Posts: 4
Joined: 05 Apr 2011, 06:59
Znuny Version: 3.0.6

Integration OTRS and Nagios

Post by Faris Zaidi »

Hai..Is it latest version of OTRS can integrate with nagios.?? I tried to follow the documentation on http://otrs.org/media/nagios_conference_2008_en.pdf but I'm not clear enough..First thing, it said about System Requirement, then follow up by SystemMonitoring module, Nagios Configuration and etc...Suddenly, it wrote about OTRS Configuration Console...how it can be so fast talking about that..It suppose talk where to open that thing..

Can anyone help me troubleshoot this problems..when I'm entering the service on Nagios, it said "plugin may be missing"...Please help me...huhuhuhu.. :(
Alexander Halle
Znuny expert
Posts: 296
Joined: 04 Jul 2010, 17:49
Znuny Version: 3.1.x
Real Name: Alexander Halle
Company: radprax MVZ GmbH
Location: Wuppertal
Contact:

Re: Integration OTRS and Nagios

Post by Alexander Halle »

(moved from Developers forum to the appropriate English configuration forum)
Alexander Halle System: OTRS 3.1.x, Ubuntu 10.04.x LTS, MySQL 5.1.x, Apache 2.2.x
OTRS Community Links: User Meetings, Projects
Alexander Halle
Znuny expert
Posts: 296
Joined: 04 Jul 2010, 17:49
Znuny Version: 3.1.x
Real Name: Alexander Halle
Company: radprax MVZ GmbH
Location: Wuppertal
Contact:

Re: Integration OTRS and Nagios

Post by Alexander Halle »

Please provide some details so that one can help you better like used OTRS version, used SystemMonitoring module version, Nagios version, operating system version, errors from your OTRS log and the steps you have done so far.
Alexander Halle System: OTRS 3.1.x, Ubuntu 10.04.x LTS, MySQL 5.1.x, Apache 2.2.x
OTRS Community Links: User Meetings, Projects
Faris Zaidi
Znuny newbie
Posts: 4
Joined: 05 Apr 2011, 06:59
Znuny Version: 3.0.6

Re: Integration OTRS and Nagios

Post by Faris Zaidi »

OTRS version, used SystemMonitoring module version, Nagios version, operating system version, errors from your OTRS log and the steps you have done so far.

OTRS Version: 3.0.6
Nagios Version: 3.2.3
Operating System Version: CentOS 5.4

for SystemMonitoring module, is it SystemMonitoring-2.0.2.opm?? and I can't find where is OTRS log located...
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Integration OTRS and Nagios

Post by Wolfgangf »

I've done it with Version 2.4.x based on this http://www.netways.de/uploads/media/Wol ... TRS_02.pdf approach

the necessary scripts (eventhandlers) can be found at https://www.monitoringexchange.org/inve ... agios-OTRS

and last not least, I changed a bit of code, because I wanted to get feedback (eg link to ticket) from OTRS into Nagios immediatelly after acknowledging the problem
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
Alexander Halle
Znuny expert
Posts: 296
Joined: 04 Jul 2010, 17:49
Znuny Version: 3.1.x
Real Name: Alexander Halle
Company: radprax MVZ GmbH
Location: Wuppertal
Contact:

Re: Integration OTRS and Nagios

Post by Alexander Halle »

Faris Zaidi wrote:for SystemMonitoring module, is it SystemMonitoring-2.0.2.opm?? and I can't find where is OTRS log located...
It's all in the admin area. Please see the manual :

1. Admin Area ---> http://doc.otrs.org/3.0/en/html/adminarea.html
2. Package Manager ---> http://doc.otrs.org/3.0/en/html/adminar ... nager.html
3. System Log ---> http://doc.otrs.org/3.0/en/html/adminar ... m-log.html
Alexander Halle System: OTRS 3.1.x, Ubuntu 10.04.x LTS, MySQL 5.1.x, Apache 2.2.x
OTRS Community Links: User Meetings, Projects
Faris Zaidi
Znuny newbie
Posts: 4
Joined: 05 Apr 2011, 06:59
Znuny Version: 3.0.6

Re: Integration OTRS and Nagios

Post by Faris Zaidi »

Wolfgangf wrote:the necessary scripts (eventhandlers) can be found at https://www.monitoringexchange.org/inve ... agios-OTRS
according to the info on that URL, it said that I need to install SystemMonitoring Extension first.. & I already download the SystemMonitoring, the file name is "SystemMonitoring-2.0.2.opm"...is it true??

if it's true, how to install it??

sorry!! I am newbie on OTRS...
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Integration OTRS and Nagios

Post by Wolfgangf »

no problem :)

go to Admin -> package management and install the recent version of Systemmonitoring

BR
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
Alexander Halle
Znuny expert
Posts: 296
Joined: 04 Jul 2010, 17:49
Znuny Version: 3.1.x
Real Name: Alexander Halle
Company: radprax MVZ GmbH
Location: Wuppertal
Contact:

Re: Integration OTRS and Nagios

Post by Alexander Halle »

Faris Zaidi wrote:sorry!! I am newbie on OTRS...
No problem, but please notice that I already provided you the relevant manual links.
Alexander Halle System: OTRS 3.1.x, Ubuntu 10.04.x LTS, MySQL 5.1.x, Apache 2.2.x
OTRS Community Links: User Meetings, Projects
judanssi
Znuny newbie
Posts: 2
Joined: 12 Apr 2011, 18:12
Znuny Version: 3.06

Re: Integration OTRS and Nagios

Post by judanssi »

Wolfgangf wrote:I've done it with Version 2.4.x based on this http://www.netways.de/uploads/media/Wol ... TRS_02.pdf approach

the necessary scripts (eventhandlers) can be found at https://www.monitoringexchange.org/inve ... agios-OTRS

and last not least, I changed a bit of code, because I wanted to get feedback (eg link to ticket) from OTRS into Nagios immediatelly after acknowledging the problem

Do you have any documentation to publish?

I am just fighting with this. I am using /usr/sbin/sendmail instead of /usr/bin/mail, and then syntax for email is little bit different. I am not so good with code, so I just have to test different variations.

Also that part of link to ticket into Nagios sounds great.

Too bad that there is no documentation for the scripts. :(

PS. I couldnt find the scripts from URL you provided, but I think they are same scripts than HERE
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Integration OTRS and Nagios

Post by Wolfgangf »

Well, I agree, documentation could be improved ...
It also took me 3 attempts to come to the point

After getting the idea
Service/Host going to red:

1) Nagios -> Acknowledge -> eventhandling scripts sending mail -> OTRS -> Systemmontoring::Core::Postmaster Module -> New Ticket
2) OTRS -> OnEvent Changing State -> Send Acknowledge Systemmontoring::Nagios::Acknowledge -> Nagios update Acknowledge

Service / Host turning back to green:
1) Nagios -> eventhandling script sending mail -> OTRS -> Systemmontoring::Core::Postmaster Module -> Ticket for this Service/Host? -> Yes: Close, No: Ignore
It was quite easy

The one thing i changed is in 2) when service goes to red; i did not want to wait for changing state and changed code in System/Postmaster/NewTicket.pm accordingly.
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
Locked