nagios integration

Moderator: crythias

Locked
eandrex
Znuny expert
Posts: 213
Joined: 04 Nov 2012, 23:58
Znuny Version: OTRS 4.x
Real Name: Esteban
Company: NORTON DE COLOMBIA

nagios integration

Post by eandrex »

hi, i just read "nagios_conference_2008" and i got two questions

first one:
i did everything, except last steps because i didnt get them

Image

can anyone explain me what do i have to do?, i tried to run that command in shell but didnt work

second one is:

how can i do to make OTRS to create a ticket when when an alert or warning comes from nagios? i have read many posts here about it, but no one says how did they make it =(

thank you :D

edit: im running otrs 3.1
and system monitoring 3.2.2
under ubuntu 12.04 lts
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: nagios integration

Post by reneeb »

"i tried to run that command in shell but didnt work" <- is not very specific. What exactly didn't work? Which error occured (please post error message).

Does your OTRS get the mails? Does it create tickets for other mails than the mails from nagios? Have you configured your nagios to send emails on alerts? How did you configure SystemMonitoring? Are there any error messages in your log files (webserver log and OTRS log)?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
eandrex
Znuny expert
Posts: 213
Joined: 04 Nov 2012, 23:58
Znuny Version: OTRS 4.x
Real Name: Esteban
Company: NORTON DE COLOMBIA

Re: nagios integration

Post by eandrex »

hi, reneeb, thank you for your support

command i was trying to run was "rrdtool create /opt/otrs/var/otrs.rrd DS:opentickets:GAUGE:600:U:U RRA:AVERAGE:0.5:1:2400"
it fixed it by installing rrdtool, after that, i created a folder in <my otrs instalation>/bin
inside, i created a file named "otrs.rrd.sh" and pasted on it this

Code: Select all

TMPTICKETS=`/opt/otrs/bin/otrs.NagiosCheck.pl -c /opt/otrs/Kernel/Config/
NagiosCheck.pm`
rrdtool update otrs.rrd $TODAY:$TMPTICKETS
rrdtool graph /opt/otrs/var/httpd/htdocs/images/opentickets_daily.png --start -86400
--title "OTRS Performance Data" --vertical-label "offene Tickets" -w 600 -h 200
DEF:opentickets=otrs.rrd:opentickets:AVERAGE AREA:opentickets#00ff00:"offene Tickets"
rrdtool graph /opt/otrs/var/httpd/htdocs/images/opentickets_weekly.png --start
-604800 --title "OTRS Performance Data" --vertical-label "offene Tickets" -w 600 -h
200 DEF:opentickets=otrs.rrd:opentickets:AVERAGE AREA:opentickets#00ff00:"offene
Tickets"

According to if otrs gets emails, the answer is yes, let me show you
http://i45.tinypic.com/2mcqr4.png
i send custom services notifications from nagios, and it sends emails to otrs user which i have created this way in nagios config

Code: Select all

define contact{
	contact_name 			otrs	
	use				generic-contact
	alias				OTRS System

	email				otrs@localhost
}
this is how i configured system monitoring
http://i46.tinypic.com/2rxw8j8.png
http://i49.tinypic.com/2mz9w0j.png

finally, otrs isnt creating tickets from emails that get from nagios

otrs log
http://i46.tinypic.com/2nib3ok.png

by the way, i am seeing already "OTRS Number of tickets" on nagios services and it is critical hahah

thank you
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: nagios integration

Post by jojo »

you have no local pop3 daemon running. So your mail setup is broken.

- Install a pp3 server
- better: reconfigure your mta to direct send mails into OTRS via procmail
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
eandrex
Znuny expert
Posts: 213
Joined: 04 Nov 2012, 23:58
Znuny Version: OTRS 4.x
Real Name: Esteban
Company: NORTON DE COLOMBIA

Re: nagios integration

Post by eandrex »

Hi, i just installed a pop3 server(courier-pop) in my postfix instalation, and everything worked

except that it worked in the way i didnt expect

thing is i had to configure a pop3 account in otrs, but i was thinking it wouldnt be necesary

in fact, i think monitoring system module isnt working yet...what i got to work was "PostMaster Mail Accounts" feature

am i wrong? or thats they way it is supposed to work?

thankkk you anyway
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: nagios integration

Post by jojo »

the SystemMonitoring relies on E-Mails.

Please read the admin manual carefully for the basic setup of OTRS or get professional help
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Locked