Hi Micheal,
if I stop icinga2 service in my 2 machine and put the command  icinga2 -c
icinga2.conf in my 2 machine it work perfectly!!!
MY MACHINE MASTER
[2014-07-08 15:26:30 +0000] information/IdoMysqlConnection: MySQL IDO
instance id: 1 (schema version: '1.11.3')
[2014-07-08 15:26:30 +0000] critical/ApiListener: Cannot connect to host
'10.26.10.14' on port '5665'
[2014-07-08 15:26:30 +0000] information/ApiListener: New client connection
for identity 'icinga2b'

MY MACHINE SLAVE
[2014-07-08 15:26:30 +0000] information/DynamicObject: Restored 85 objects
[2014-07-08 15:26:30 +0000] information/ConfigItem: Triggering Start signal
for config items
[2014-07-08 15:26:30 +0000] information/ApiListener: Adding new listener:
port 5665
[2014-07-08 15:26:30 +0000] information/ConfigItem: Activated all objects.
[2014-07-08 15:26:30 +0000] information/ApiListener: New client connection
for identity 'icinga2a'


If I send the command icinga2 -c icinga2.conf -x debug in master machine i
have this results.
 notice/ApiListener: Relaying 'event::SetNextCheck' message
[2014-07-08 15:20:49 +0000] debug/IdoMysqlConnection: Query: UPDATE
icinga_servicestatus SET next_check = FROM_UNIXTIME(1404832909) WHERE
instance_id = 1 AND service_object_id = 79
[2014-07-08 15:20:49 +0000] notice/Process: Running command
'/usr/lib64/nagios/plugins/check_load', '-c', '10,6,4', '-w', '5,4,3': PID
20826
[2014-07-08 15:20:49 +0000] debug/CheckerComponent: Check finished for
object 'icinga2a!load'
[2014-07-08 15:20:49 +0000] notice/Process: PID 20826 terminated with exit
code 0
[2014-07-08 15:20:49 +0000] debug/DbEvents: add service check history for
'icinga2a!load'
[2014-07-08 15:20:49 +0000] debug/DbObject: Updating object vars for
'icinga2a!load'
[2014-07-08 15:20:49 +0000] debug/DbObject: object customvar key: 'sla'
value: '24x7' overridden: 0
[2014-07-08 15:20:49 +0000] debug/DbObject: Endpoint node: 'icinga2a'
status update for 'icinga2a!load'
[2014-07-08 15:20:49 +0000] notice/ApiListener: Relaying
'event::CheckResult' message
[2014-07-08 15:20:49 +0000] debug/IdoMysqlConnection: Query: UPDATE
icinga_customvariablestatus SET has_been_modified = '0',  instance_id = 1,
 object_id = 79,  status_update_time = FROM_UNIXTIME(1404832849),  varname
= 'sla',  varvalue = '24x7' WHERE object_id = 79 AND varname = 'sla'
[2014-07-08 15:20:49 +0000] debug/IdoMysqlConnection: Query: UPDATE
icinga_servicestatus SET acknowledgement_type = '0',  active_checks_enabled
= '1',  check_command = 'load',  check_source = 'icinga2a',  check_type =
'0',  current_check_attempt = '1',  current_notification_number = '0',
 current_state = '0',  endpoint_object_id = 89,  event_handler = '',
 event_handler_enabled = '0',  execution_time = '0.001789093017578125',
 flap_detection_enabled = '1',  has_been_checked = '1',  instance_id = 1,
 is_flapping = '0',  is_reachable = '1',  last_check =
FROM_UNIXTIME(1404832849),  last_hard_state_change =
FROM_UNIXTIME(1404826143),  last_state_change = FROM_UNIXTIME(1404826143),
 last_time_ok = FROM_UNIXTIME(1404832849),  latency = '0',  long_output =
'',  max_check_attempts = '3',  modified_service_attributes = '0',
 next_check = FROM_UNIXTIME(1404832909),  next_notification =
FROM_UNIXTIME(1404833980),  normal_check_interval = '1',
 notifications_enabled = '1',  output = 'OK - load average: 0.00, 0.00,
0.00',  passive_checks_enabled = '1',  percent_state_change = '0',
 perfdata = 'load1=0;5;10;0 load15=0;3;4;0 load5=0;4;6;0',
 problem_has_been_acknowledged = '0',  process_performance_data = '1',
 retry_check_interval = '0.5',  scheduled_downtime_depth = '0',
 service_object_id = 79,  should_be_scheduled = '1',  state_type = '1',
 status_update_time = FROM_UNIXTIME(1404832849) WHERE service_object_id = 79
[2014-07-08 15:20:49 +0000] debug/IdoMysqlConnection: Query: COMMIT
[2014-07-08 15:20:49 +0000] debug/IdoMysqlConnection: Query: BEGIN
[2014-07-08 15:20:50 +0000] debug/IdoMysqlConnection: Query: COMMIT
[2014-07-08 15:20:50 +0000] debug/IdoMysqlConnection: Query: BEGIN
[2014-07-08 15:20:51 +0000] debug/IdoMysqlConnection: Query: COMMIT
[2014-07-08 15:20:51 +0000] debug/IdoMysqlConnection: Query: BEGIN
[2014-07-08 15:20:52 +0000] debug/IdoMysqlConnection: Query: COMMIT
[2014-07-08 15:20:52 +0000] debug/IdoMysqlConnection: Query: BEGIN
[2014-07-08 15:20:53 +0000] notice/CheckerComponent: Pending checkables: 0;
Idle checkables: 11; Checks/s: 0.6
[2014-07-08 15:20:53 +0000] debug/IdoMysqlConnection: Query: COMMIT
[2014-07-08 15:20:53 +0000] debug/IdoMysqlConnection: Query: BEGIN
[2014-07-08 15:20:53 +0000] debug/IdoMysqlConnection: Query: DELETE FROM
icinga_programstatus WHERE instance_id = 1
[2014-07-08 15:20:53 +0000] debug/IdoMysqlConnection: Query: INSERT INTO
icinga_programstatus (active_host_checks_enabled,
active_service_checks_enabled, daemon_mode, event_handlers_enabled,
flap_detection_enabled, instance_id, is_currently_running,
last_command_check, notifications_enabled, passive_host_checks_enabled,
passive_service_checks_enabled, process_id, process_performance_data,
program_start_time, status_update_time) VALUES ('1', '1', '1', '1', '1', 1,
'1', FROM_UNIXTIME(1404832853), '1', '1', '1', '20625', '1',
FROM_UNIXTIME(1404832813), FROM_UNIXTIME(1404832853))
[2014-07-08 15:20:53 +0000] debug/IdoMysqlConnection: Query: DELETE FROM
icinga_runtimevariables WHERE instance_id = 1
[2014-07-08 15:20:53 +0000] debug/IdoMysqlConnection: Query: INSERT INTO
icinga_runtimevariables (instance_id, varname, varvalue) VALUES (1,
'total_services', '10')
[2014-07-08 15:20:53 +0000] debug/IdoMysqlConnection: Query: INSERT INTO
icinga_runtimevariables (instance_id, varname, varvalue) VALUES (1,
'total_scheduled_services', '10')
[2014-07-08 15:20:53 +0000] debug/IdoMysqlConnection: Query: INSERT INTO
icinga_runtimevariables (instance_id, varname, varvalue) VALUES (1,
'total_hosts', '1')
[2014-07-08 15:20:53 +0000] debug/IdoMysqlConnection: Query: INSERT INTO
icinga_runtimevariables (instance_id, varname, varvalue) VALUES (1,
'total_scheduled_hosts', '1')
[2014-07-08 15:20:53 +0000] notice/WorkQueue: #4 items: 0
[2014-07-08 15:20:53 +0000] notice/WorkQueue: #2 items: 0
[2014-07-08 15:20:53 +0000] notice/WorkQueue: #3 items: 0
[2014-07-08 15:20:54 +0000] critical/TcpSocket: Invalid socket: Connection
refused
[2014-07-08 15:20:54 +0000] critical/ApiListener: Cannot connect to host
'10.26.10.14' on port '5665'
[2014-07-08 15:20:54 +0000] debug/ApiListener: Cannot connect to host
'10.26.10.14' on port '5665'
/root/rpmbuild/BUILD/icinga2-master/lib/base/tcpsocket.cpp(213): Throw in
function void icinga::TcpSocket::Connect(const icinga::String&, const
icinga::String&)
Dynamic exception type:
N5boost16exception_detail10clone_implIN6icinga12socket_errorEEE
std::exception::what: std::exception
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to