Bug #2221

reload problem

Added by rudolfasd over 2 years ago. Updated almost 2 years ago.

Status:ClosedStart date:12/23/2011
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Icinga Version: OS Version:

Description

Sorry for my bad English.
icinga don't understand kill -HUP signal, so init script reload command will not work properly.

[root@sl03800008006 init.d]# service icinga status
icinga (pid 5395) is running...
[root@sl03800008006 init.d]# service icinga reload
Running configuration check...OK
Reloading icinga configuration...done
[root@sl03800008006 init.d]# service icinga status
icinga is not running
[root@sl03800008006 init.d]# cat /var/icinga/icinga.pid
5395
[root@sl03800008006 init.d]#

icinga.debug (82.3 KB) rudolfasd, 02/01/2012 07:07 am

History

#1 Updated by dnsmichi about 2 years ago

  • Status changed from New to Feedback

i don't understand the issue - what happens on the reload? tried a manual kill -HUP then?

what does the log tell? any debug logs which might point to a possible segfault then?

#2 Updated by dnsmichi about 2 years ago

and which versions are used, which addons are installed, etc

#3 Updated by rudolfasd about 2 years ago

Icinga version 1.6.1. Installed icinga-web 1.6.0 and icinga-reports 1.6.0.

In icinga.cfg debug_level=-1

I tried a manual kill -HUP :

[root@sl03800008006 icinga]# service icinga status
icinga (pid 19456) is running...
[root@sl03800008006 icinga]# kill -HUP 19456
[root@sl03800008006 icinga]# service icinga status
icinga is not running
[root@sl03800008006 icinga]# tail /var/log/icinga/icinga.log
[1328074135] Warning: Host '00-com.C6' has no services associated with it!
[1328074135] Warning: Host '00-com.C6' has no default contacts or contactgroups defined!
[1328074135] Warning: Host '00.-Teledayn' has no services associated with it!
[1328074135] Warning: Host '00.-Teledayn' has no default contacts or contactgroups defined!
[1328074135] Finished daemonizing... (New PID=19456)
[1328074138] Event loop started...
[1328074154] Caught SIGHUP, restarting...
[1328074154] idomod: Shutdown complete.
[1328074154] Event broker module '/usr/bin/idomod.o' deinitialized successfully.
[1328074154] Caught SIGSEGV, shutting down...
[root@sl03800008006 icinga]# service icinga start
Running configuration check...OK
Icinga PID 19456 not running. Removing lockfile.
Starting icinga: Starting icinga done.
[root@sl03800008006 icinga]#

P.S This problem makes impossible icinga reload through nagiosql.

#4 Updated by rudolfasd about 2 years ago

debug file

#5 Updated by dnsmichi about 2 years ago

os?
system?
selinux?
how is icinga installed - git / tarball / packages?

[1328074154.128137] [064.0] [pid=19456] Attempting to unload module '/usr/bin/idomod.o': flags=1, reason=2
[1328074154.128533] [064.0] [pid=19456] Module '/usr/bin/idomod.o' unloaded successfully.
[1328074154.128671] [064.0] [pid=19456] Attempting to unload module '/usr/bin/idomod.o': flags=1, reason=2

and naturally, attach your configs without whitespaces and #.

especially, explain to me, why you have 2 idomod neb modules loaded (icinga.cfg:broker_module versus etc/modules/idoutils.cfg)

#6 Updated by rudolfasd about 2 years ago

I'm sorry to have kept you spend time.
I realized my mistake and removed the line from icinga.cfg:
broker_module=/usr/bin/idomod.o config_file=/etc/icinga/idomod.cfg
Now everything is working correctly.

Thank you for your help.

#7 Updated by dnsmichi about 2 years ago

well it would be interesting, what exactly was causing the segfault. i.e. running the core startup not via initscript but terminate within an gdb shell and backtrace the sigsegv.
see https://wiki.icinga.org/display/Dev/Debug for some insights using gdb.

#8 Updated by dnsmichi almost 2 years ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF