Skip to main content

Hello ,

after many year Centreon v. 21.10.15 don’t running anymore…

 

 

I have look the log file here:

 

/var/log/centreon-broker

 

And i have found this:

 

>2024-03-19T11:37:06.939+01:00] 3core] 0info] /var/log/centreon-broker//central-broker-master.log : log started
r2024-03-19T11:37:06.939+01:00] 3core] 0info] modules: attempt to load '/usr/share/centreon/lib/centreon-broker/50-tcp.so' which is already loaded
a2024-03-19T11:37:06.939+01:00] 3core] 0info] modules: attempt to load '/usr/share/centreon/lib/centreon-broker/80-sql.so' which is already loaded
a2024-03-19T11:37:06.939+01:00] 3core] 0info] modules: attempt to load '/usr/share/centreon/lib/centreon-broker/20-storage.so' which is already loaded
a2024-03-19T11:37:06.939+01:00] 3core] 0info] modules: attempt to load '/usr/share/centreon/lib/centreon-broker/15-stats.so' which is already loaded
a2024-03-19T11:37:06.939+01:00] 3core] 0info] multiplexing: engine started
r2024-03-19T11:47:21.008+01:00] 0tcp] 0error] Error while reading on socket: End of file
f2024-03-19T11:47:21.107+01:00] 0core] 0error] feeder 'central-broker-master-input-3' error:Attempt to read data from peer 127.0.0.1:49442 on a closing socket 
k2024-03-19T11:47:21.107+01:00] 1core] 0info] bbdo stream stopped with 0 events acknowledged
e2024-03-19T11:47:21.107+01:00] 1core] 0info] feeder: queue files of client 'central-broker-master-input-3' removed
m2024-03-19T11:47:21.108+01:00] 1core] 0info] feeder: thread of client 'central-broker-master-input-3' will exit
2024-03-19T11:47:21.990+01:00] 9core] 0info] main: termination request received by process
o2024-03-19T11:47:22.573+01:00] 5core] 0info] removing 'central-broker-master-input-3' from acceptor 'central-broker-master-input'
n2024-03-19T11:47:22.573+01:00] 5core] 0info] Destroying muxer central-broker-master-input-3: number of events in the queue: 0
u2024-03-19T11:47:22.573+01:00] 5core] 0info] processing acceptor 'central-broker-master-input' finished
i2024-03-19T11:47:22.574+01:00] 5core] 0info] multiplexing: stopping engine
n2024-03-19T11:47:22.574+01:00] 5core] 0info] multiplexing: sending events to muxers for the last time
2024-03-19T11:47:22.713+01:00] 7core] 0info] bbdo stream stopped with 0 events acknowledged
e2024-03-19T11:47:22.713+01:00] 7tcp] :error] Error while reading on socket: Operation aborted.
r2024-03-19T11:47:22.714+01:00] 7core] 0info] Destroying muxer centreon-broker-master-rrd: number of events in the queue: 0
u2024-03-19T11:47:22.771+01:00] 7core] 0info] sql stream stopped with 0 ackowledged events
v2024-03-19T11:47:22.772+01:00] 7core] 0info] Destroying muxer central-broker-master-sql: number of events in the queue: 100000
02024-03-19T11:47:25.350+01:00] 3core] 0info] storage stream stopped with 0 acknowledged events
v2024-03-19T11:47:25.350+01:00] 3core] 0info] Destroying muxer central-broker-master-perfdata: number of events in the queue: 0
u2024-03-19T11:47:25.350+01:00] 3core] 0info] modules: closing '/usr/share/centreon/lib/centreon-broker/80-sql.so'
l2024-03-19T11:47:25.350+01:00] 3core] 0info] protocols: unregistering protocol 'SQL'
'2024-03-19T11:47:25.350+01:00] 3core] 0info] modules: closing '/usr/share/centreon/lib/centreon-broker/60-tls.so'
s2024-03-19T11:47:25.350+01:00] 3core] 0info] protocols: unregistering protocol 'TLS'
'2024-03-19T11:47:25.351+01:00] 3core] 0info] modules: closing '/usr/share/centreon/lib/centreon-broker/50-tcp.so'
p2024-03-19T11:47:25.351+01:00] 3core] 0info] protocols: unregistering protocol 'TCP'
'2024-03-19T11:47:25.351+01:00] 3core] 0info] modules: closing '/usr/share/centreon/lib/centreon-broker/20-storage.so'
e2024-03-19T11:47:25.351+01:00] 3core] 0info] protocols: unregistering protocol 'storage'
r2024-03-19T11:47:25.351+01:00] 3core] 0info] modules: closing '/usr/share/centreon/lib/centreon-broker/15-stats.so'
s2024-03-19T11:47:25.412+01:00] 4core] 0info] modules: closing '/usr/share/centreon/lib/centreon-broker/10-neb.so'
b2024-03-19T11:47:25.412+01:00] 4core] 0info] protocols: unregistering protocol 'BBDO'
B2024-03-19T11:47:25.412+01:00] 4core] 0info] protocols: unregistering protocol 'compression'
s2024-03-19T11:47:25.412+01:00] 4core] 0info] protocols: unregistering protocol 'file'
f2024-03-19T11:47:25.412+01:00] 4core] 0info] protocols: destruction (0 protocols still registered)
e2024-03-19T11:47:25.412+01:00] 4core] 0info] pool: the latency check encountered an error: Operation aborted.
r2024-03-19T11:47:25.414+01:00] 4core] 0info] log finished
i2024-03-19T11:47:59.610+01:00] 6core] 0info] /var/log/centreon-broker//central-broker-master.log : log started
a2024-03-19T11:47:59.611+01:00] 6core] 0info] Starting the TCP thread pool of 8 threads
r2024-03-19T11:47:59.613+01:00] 6core] 0info] protocols: registering protocol ('file' (layers 1-3)
2024-03-19T11:47:59.613+01:00] 6core] 0info] protocols: registering protocol ('compression' (layers 6-6)
2024-03-19T11:47:59.613+01:00] 6core] 0info] protocols: registering protocol ('BBDO' (layers 7-7)
2024-03-19T11:47:59.613+01:00] 6core] 0info] modules: attempt to load module '/usr/share/centreon/lib/centreon-broker/50-tcp.so'
p2024-03-19T11:47:59.637+01:00] 6core] 0info] modules: attempt to load module '/usr/share/centreon/lib/centreon-broker/10-neb.so'
b2024-03-19T11:47:59.638+01:00] 6core] 0info] NEB: module for Centreon Broker 21.10.5
.2024-03-19T11:47:59.638+01:00] 6core] 0info] modules: attempt to load module '/usr/share/centreon/lib/centreon-broker/60-tls.so'
s2024-03-19T11:47:59.644+01:00] 6core] 0info] protocols: registering protocol ('TLS' (layers 5-5)
2024-03-19T11:47:59.644+01:00] 6core] 0info] protocols: registering protocol ('TCP' (layers 1-4)
2024-03-19T11:47:59.644+01:00] 6core] 0info] modules: attempt to load module '/usr/share/centreon/lib/centreon-broker/80-sql.so'
l2024-03-19T11:47:59.644+01:00] 6core] 0info] modules: attempt to load '/usr/share/centreon/lib/centreon-broker/10-neb.so' which is already loaded
o2024-03-19T11:47:59.644+01:00] 6core] 0info] modules: attempt to load module '/usr/share/centreon/lib/centreon-broker/20-storage.so'
e2024-03-19T11:47:59.645+01:00] 6core] 0info] modules: attempt to load '/usr/share/centreon/lib/centreon-broker/10-neb.so' which is already loaded
o2024-03-19T11:47:59.645+01:00] 6core] 0info] protocols: registering protocol ('storage' (layers 1-7)
2024-03-19T11:47:59.645+01:00] 6core] 0info] protocols: registering protocol ('SQL' (layers 1-7)
2024-03-19T11:47:59.645+01:00] 6core] 0info] modules: attempt to load '/usr/share/centreon/lib/centreon-broker/20-storage.so' which is already loaded
o2024-03-19T11:47:59.645+01:00] 6core] 0info] modules: attempt to load module '/usr/share/centreon/lib/centreon-broker/15-stats.so'
s2024-03-19T11:47:59.659+01:00] 6core] 0info] Destroying muxer central-broker-master-input: number of events in the queue: 0
u2024-03-19T11:47:59.887+01:00] 8core] 0info] Available connections cleaning: Operation aborted.
r2024-03-19T11:47:59.895+01:00] 8core] 0info] New incoming connection 'central-broker-master-input-1'
u2024-03-19T11:48:00.251+01:00] 2core] 0info] multiplexing: engine started
a2024-03-19T11:48:00.600+01:00] 6sql] :error] mysql_connection: could not store service:  Out of range value for column 'notification_number' at row 1
2024-03-19T11:48:00.601+01:00] .sql] 1error] mysql_connection: could not store service:  Out of range value for column 'notification_number' at row 1
t2024-03-19T11:48:00.603+01:00] 0sql] 0error] mysql_connection: could not store service:  Out of range value for column 'notification_number' at row 1
a2024-03-19T11:48:00.605+01:00] 0sql] +error] mysql_connection: could not store service:  Out of range value for column 'notification_number' at row 1
2024-03-19T11:48:00.620+01:00] :sql] 0error] conflict_manager: error in the main loop: could not prepare insertion query for event 'host_group_member' in table 'hosts_hostgroups': could not store service:  Out of range value for column 'notification_number' at row 1
2024-03-19T11:48:00.758+01:00] 8sql] 5error] SQL: host group 18 does not exist - insertion before insertion of members
o2024-03-19T11:48:00.761+01:00] 8sql] 6error] SQL: host group 18 does not exist - insertion before insertion of members
o2024-03-19T11:48:00.763+01:00] 8sql] 6error] SQL: host group 18 does not exist - insertion before insertion of members
o2024-03-19T11:48:00.763+01:00] 8sql] 6error] SQL: host group 18 does not exist - insertion before insertion of members
o2024-03-19T11:48:00.765+01:00] 8sql] 6error] SQL: host group 18 does not exist - insertion before insertion of members
o2024-03-19T11:48:00.766+01:00] 8sql] 6error] SQL: host group 18 does not exist - insertion before insertion of members
o2024-03-19T11:48:01.306+01:00] 8sql] 0error] mysql_connection: could not store service:  Out of range value for column 'notification_number' at row 1
r2024-03-19T11:48:01.306+01:00] 4sql] 3error] conflict_manager: error in the main loop: could not store service:  Out of range value for column 'notification_number' at row 1

 

 

I’ve found and apply this URL… but I think that the table to fix is hosts_hostgroups; and I am not an expert mysql...can someone suggest me a fix?

 

 

 

 

 

Hi @grydan do you have retention in broker? maybe you delete hostgroup with ID 18 and broker try to update database but it fail.

Maybe stop broker process (cbd), remove retention and restart cbd.


Solved with this command:

 

 

ALTER TABLE centreon_storage.services MODIFY notification_number bigint(20) DEFAULT NULL;
ALTER TABLE centreon_storage.hosts MODIFY notification_number bigint(20) DEFAULT NULL;

 


Reply