naparuba/shinken — Issue #198: scheduler crashing
Author: sxpert
Created: 2012-02-26 08:19:31+00:00
State: open

We encountered a case of the scheduler crashing while using bp_rule

this appears in dmesg
[82941.133312] shinken-schedul[28992]: segfault at 7fff6876dff8 ip 00007f280c95c1d5 sp 00007fff6876dfe0 error 6 in libc-2.11.3.so[7f280c8e8000+159000]

arbiter-debug.log:
[All] Dispatching 1/1 configurations
[All] Schedulers order : scheduler-1
[All] Dispatching configuration 0
[All] but there a no alive schedulers in this realm!
WARNING : All schedulers configurations are not Process Process-1:
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/multiprocessing-2.6.2.1-py2.6-linux-x86_64.egg/multiprocessing/process.py", line 237, in _bootstrap
self.run()
File "/usr/local/lib/python2.6/dist-packages/multiprocessing-2.6.2.1-py2.6-linux-x86_64.egg/multiprocessing/process.py", line 93, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python2.6/dist-packages/shinken/modules/named_pipe.py", line 117, in main
inputready,outputready,exceptready = select.select(input,[],[], 1)
error: (4, 'Interrupted system call')
[NamedPipe-Autogenerated] Trying to open the named pipe 'rw/nagios.cmd'
[NamedPipe-Autogenerated] The named pipe 'rw/nagios.cmd' is open
dispatched, 1 are missing
I ask reactionner-1 to wait a new conf
Scheduler configuration 0 is unmanaged!!
Warning : Missing satellite reactionner for configuration 0 :
Warning : Missing satellite poller for configuration 0 :
Warning : Missing satellite broker for configuration 0 :
Dispatching Realm All
[All] Dispatching 1/1 configurations
[All] Schedulers order : scheduler-1
[All] Dispatching configuration 0
[All] but there a no alive schedulers in this realm!
WARNING : All schedulers configurations are not dispatched, 1 are missing
I ask reactionner-1 to wait a new conf
Scheduler configuration 0 is unmanaged!!
Warning : Missing satellite reactionner for configuration 0 :
Warning : Missing satellite poller for configuration 0 :
Warning : Missing satellite broker for configuration 0 :

sample conf file
define host {
use	router
host_name	ht34-peret-2
display_name	ht-34 Peret 2
check_command	bp_rule!(2,1,1 of: ht34-peret-2-dif0 | ht34-peret-2-dif1)
parents	ht34-cazouls
}
define host {
use	router
host_name	ht34-peret-2-dif0
address	10.134.21.2
alias	021-Peret2-dif0
display_name	ht-34 Peret 2 dif0
check_command	host_in_centreon
parents	ht34-peret-2
}
define host {
use	router
host_name	ht34-peret-2-dif1
address	10.134.21.3
alias	021-Peret2-dif1
display_name	ht-34 Peret 2 dif1
check_command	host_in_centreon
parents	ht34-peret-2
}