NETWAYS / icinga2-scom-connector

UNSUPPORTED - SCOM Alert connector for Icinga 2
GNU General Public License v2.0
2 stars 0 forks source link

Out of memory issue on CentOS 7 #6

Open hristoz opened 6 years ago

hristoz commented 6 years ago

Hi, I am facing issues with the connector on CentOS 7. When I run the scom_connector app, it is trying to connect to the SCOM DB and then throws exception Out of memory.

[root@icinga plugins]# ./scom_connector config -d
# Let me connect to SCOM and query objects...
Out of memory!

Output of the log messages:

Nov 28 17:24:39 sofenticinga kernel: scom_connector[13548]: segfault at c4fffffff8 ip 00002aae1ba314dc sp 00007ffd0d9aa7b8 error 4 in libc-2.17.so[2aae1b9b1000+1b8000]
Nov 28 17:24:39 sofenticinga abrt-hook-ccpp: Process 13548 (perl) of user 995 killed by SIGSEGV - dumping core
Nov 28 17:24:39 sofenticinga abrt-server: Interpreter crashed, but no packaged script detected: '/usr/bin/perl /etc/icinga2/plugins/scom_connector monitor'
Nov 28 17:24:39 sofenticinga abrt-server: 'post-create' on '/var/spool/abrt/ccpp-2017-11-28-17:24:39-13548' exited with 1
Nov 28 17:24:39 sofenticinga abrt-server: Deleting problem directory '/var/spool/abrt/ccpp-2017-11-28-17:24:39-13548'

Can you help me with debugging this?

Thank you.

lazyfrosch commented 6 years ago

Interesting, seems like you either have a really big setup or something is wrong with the database querying there.

You could use Devel::Trace to see what Perl is doing: http://search.cpan.org/~mjd/Devel-Trace-0.12/Trace.pm

I don't have a SCOM setup available for testing, so I can't really help directly.

SimonHoenscheid commented 6 years ago

I ran into the same on Centos7. Due to the DB Connector is buggy. I am currently porting the script to ruby.

log1-c commented 5 years ago

Changing the version in freetds.conf to tds version = 8.0 did the trick for me.

Ubuntu 18.04 Perl v5.26.1