Closed lipazsolt closed 6 years ago
Would be interesting if Icinga 2 still thinks that the object's state
is 1
, or if it already recovered to OK and removed the acknowledgement. There might be a problem with the IDO update then.
Since you're using 2.9.0, I highly recommend to upgrade to 2.9.1 and try again to reproduce this.
Now, I have updated the icinga and web2 to 2.9.1/2.6.1 but still cannot reproduce this. Anyway, I checked the a logs deeper, and i noticed an error few minutes later (I deployed a new config):
[2018-09-10 16:14:17 +0200] information/ExternalCommandListener: Executing external command: [1536588857] ACKNOWLEDGE_SVC_PROBLEM;****;Network scan - 10.6.0.0/24;0;1;0;username;#TicketId
...
[2018-09-10 16:15:16 +0200] information/HttpServerConnection: Request: POST /v1/config/stages/director (from [x.x.x.x]:54334, user: root)
...
[2018-09-10 16:15:20 +0200] information/Application: Got reload command: Starting new instance.
....
[2018-09-10 16:15:27 +0200] information/WorkQueue: #5 (IdoMysqlConnection, ido-mysql) items: 387, rate: 42.6167/s (2557/min 183998/5min 522918/15min); empty in 9 seconds
...
[2018-09-10 16:15:32 +0200] information/Application: Reload requested, letting new process take over.
...
[2018-09-10 16:15:33 +0200] information/DbConnection: 'ido-mysql' started.
...
[2018-09-10 16:15:33 +0200] information/DbConnection: Resuming IDO connection: ido-mysql
[2018-09-10 16:15:33 +0200] information/IdoMysqlConnection: 'ido-mysql' resumed.
...
[2018-09-10 16:15:38 +0200] information/IdoMysqlConnection: MySQL IDO instance id: 1 (schema version: '1.14.3')
[2018-09-10 16:15:39 +0200] critical/IdoMysqlConnection: Error "Deadlock found when trying to get lock; try restarting transaction" when executing query "***** 508 SQL command *****
What do you think, is this deadlock issue related to Ack 0
/1
problem?
I didn't find any "Network Scan - 10.6.0.0/24" string/object/comment/ack SQL command in that 508 commands.
@dnsmichi could please help me to solve this incosistency? Maybe delete a cache folder or something...
Purge all status and config tables from the database, Icinga 2 will populate them on restart again.
Hi @dnsmichi. Thanks you. So I have to run these commands?
$ sudo systemctl stop icinga2
sql> TRUNCATE TABLE icinga_configfiles;
sql> TRUNCATE TABLE icinga_configfilevariables;
sql> TRUNCATE TABLE icinga_contactstatus;
sql> TRUNCATE TABLE icinga_customvariablestatus;
sql> TRUNCATE TABLE icinga_endpointstatus;
sql> TRUNCATE TABLE icinga_hoststatus;
sql> TRUNCATE TABLE icinga_programstatus;
sql> TRUNCATE TABLE icinga_servicestatus;
sql> TRUNCATE TABLE icinga_zonestatus;
sql> TRUNCATE TABLE statusmap;
$ sudo systemctl start icinga2
That's all table?
Create a backup first, and then look into the docs for config/status tables:
https://www.icinga.com/docs/icinga1/latest/en/db_model.html#statustables https://www.icinga.com/docs/icinga1/latest/en/db_model.html#dbm_cf
In terms of further questions on purging the database, please kindly hop onto the forums.
Current Behavior
We acknowledged a WARNING problem via icingaweb2.
WEB2 GUI rendered correctly:
But if I send an API request or use icinga2 console cli:
You can see the WARNING is not acknowledged.
Web2 Service Inspect is show the same result:
few MySQL queries:
Steps to Reproduce (for bugs)
Sorry i couldn't reproduce.
Context
How could be possible? Can i reset the IDO statuses, and use Icinga2 API/console statuses? Thanks!
Your Environment
icinga2 --version
):2.9.0-1.xenial
Ubuntu 16.04.5 LTS
icinga2 feature list
):api checker command compatlog debuglog graphite ido-mysql livestatus mainlog notification perfdata statusdata
icinga2 daemon -C
):