On the demo configuration (realms North and South, children of default realm All), with 2 receivers (All and North), the external commands do not propagate, except for the realm All hosts. the ws module is attached to the receiver in the realm All.
:+1: - external command for an host in the realm All:
==> /usr/local/var/log/alignak/receiverd.log <==
[2017-01-24 05:40:39 CET] WARNING: [alignak.external_command] Missing timestamp in command 'PROCESS_HOST_CHECK_RESULT', using [1485232839] as a timestamp.
==> /usr/local/var/log/alignak/schedulerd.log <==
[2017-01-24 05:40:39 CET] WARNING: [alignak.external_command] Missing timestamp in command 'PROCESS_HOST_CHECK_RESULT', using [1485232839] as a timestamp.
==> /usr/local/var/log/alignak/monitoring-logs.log <==
[1485232839] INFO: PASSIVE HOST CHECK: always_down;0;Tests Fred
[1485232839] INFO: EXTERNAL COMMAND: PROCESS_HOST_CHECK_RESULT;always_down;0;Tests Fred
The command is sent to the scheduler and executed
:-1: - external command for an host in the realm North:
==> /usr/local/var/log/alignak/receiverd.log <==
[2017-01-24 05:43:06 CET] WARNING: [alignak.external_command] Missing timestamp in command 'PROCESS_HOST_CHECK_RESULT', using [1485232986] as a timestamp.
==> /usr/local/var/log/alignak/schedulerd-north.log <==
[2017-01-24 05:43:06 CET] WARNING: [alignak.external_command] Missing timestamp in command 'PROCESS_HOST_CHECK_RESULT', using [1485232986] as a timestamp.
The command is sent to the linked scheduler, but that's all ... host not found?
:-1: - external command for an host in the realm South:
==> /usr/local/var/log/alignak/receiverd.log <==
[2017-01-24 05:43:32 CET] WARNING: [alignak.external_command] Missing timestamp in command 'PROCESS_HOST_CHECK_RESULT', using [1485233012] as a timestamp.
The command is not even sent to the scheduler...
Indeed, it seems there are two problems:
in the North realm, the command is received by the scheduler...
The North realm has its own receiver which knows its own scheduler (scheduler-north). The command is sent to the scheduler...
in the South realm the command is not received by the scheduler...
The South realm do not have a dedicated receiver, and the master receiver knows the 3 existing schedulers. Which one does it choose?
On the demo configuration (realms North and South, children of default realm All), with 2 receivers (All and North), the external commands do not propagate, except for the realm All hosts. the
ws
module is attached to the receiver in the realm All.:+1: - external command for an host in the realm All:
The command is sent to the scheduler and executed
:-1: - external command for an host in the realm North:
The command is sent to the linked scheduler, but that's all ... host not found?
:-1: - external command for an host in the realm South:
The command is not even sent to the scheduler...
Indeed, it seems there are two problems:
in the North realm, the command is received by the scheduler... The North realm has its own receiver which knows its own scheduler (
scheduler-north
). The command is sent to the scheduler...in the South realm the command is not received by the scheduler... The South realm do not have a dedicated receiver, and the master receiver knows the 3 existing schedulers. Which one does it choose?