-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No backend available in Thruk #145
Comments
have you tried restarting LMD? |
Where does this peer AFCA come from? Is it in the lmd.ini somewhere or in thruks config? |
I have 3 remote servers, 1 is the central one and the others have monitoring consoles and one of them is AFCA So when I configure a remote backend I always get that error "[WARN] got unknown peer key, recheck lmd config: AFCA(50f97)" I'm using the settings like that my config: /opt/lmd/etc/lmd.ini.d/afca.ini connect to thruk http(s) api[[Connections]] |
i see, you should not mix adding connections to the lmd.ini manually. Instead, i'd advice to configure the connections in Thruk only. Thruk will then manage the lmd.ini for you. |
yes, that should work. Thruk will then write the correct lmd.ini automatically. |
Why do I get that error if I'm putting the key correctly? I don't have errors on the lmd side, only on the thruk side.
[2024/10/29 14:44:46][naemon][WARN] got unknown peer key, recheck lmd config: NAME1(1fa3f)
[2024/10/29 14:44:39][naemon][WARN] got unknown peer key, recheck lmd config: NAME1(1fa3f)
[2024/10/29 14:44:41][naemon][WARN] got unknown peer key, recheck lmd config: NAME1(1fa3f)
[2024/10/29 14:44:46][naemon][WARN] got unknown peer key, recheck lmd config: NAME1(1fa3f)
lmd - version 2.2.3 (Build: 15b4536, go1.22.4)
Thruk 3.18
naemon 1.4.2
livestatus 1.4.2
[root@naemon /]# cat /etc/thruk/thruk_local.d/lmd.conf
use_lmd_core=1
lmd_core_bin="/opt/lmd/bin/lmd"
lmd_core_config=/opt/lmd/etc/lmd.ini
lmd_core_config=/opt/lmd/etc/lmd.ini.d/*.ini
lmd_timeout=5
lmd_options=
[root@naemon /]# cat /opt/lmd/etc/lmd.ini.d/name1.ini
[[Connections]]
name = "NAME1"
id = "1fa3f"
source = ["https://noc.ddns.net/thruk/"]
auth = "02e92a0b4b6666a1ab5b54b11807191519e8e21db8e63ab13e97ec95ef28a85f_1"
[root@naemon /]# cat /opt/lmd/etc/lmd.ini
Listen = ["127.0.0.1:3333", "/tmp/lmd.sock"]
ListenTimeout = 60
LogFile = "/opt/lmd/var/log/lmd.log"
LogLevel = "Debug"
LogSlowQueryThreshold = 5
LogHugeQueryThreshold = 100
LogQueryStats = false
SyncIsExecuting = true
MaxParallelPeerConnections = 3
CompressionMinimumSize = 500
CompressionLevel = -1
StaleBackendTimeout = 30
UpdateInterval = 7
UpdateOffset = 3
IdleTimeout = 120
IdleInterval = 1800
ConnectTimeout = 30
NetTimeout = 120
SkipSSLCheck = 0
BackendKeepAlive = true
SaveTempRequests = true
ServiceAuthorization = "loose"
GroupAuthorization = "strict"
MaxQueryFilter = 1000
MaxClockDelta = 10.0
[2024-10-29 14:45:00.040][Debug][pid:2401][peer:644] [Naemon] updating timeperiods and host/servicegroup statistics completed (1ms)
[2024-10-29 14:45:00.041][Debug][pid:2401][datastoreset:358] [Naemon][r:56d6c2] up delta table: status - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:45:00.041][Debug][pid:2401][datastoreset:730] [Naemon][r:56d6c2] up full table: status - fetch: 0s - sort: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:45:00.042][Debug][pid:2401][datastoreset:358] [Naemon][r:f43908] up delta table: hosts - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 0 - size: 0 kB
[2024-10-29 14:45:00.042][Debug][pid:2401][datastoreset:358] [Naemon][r:6de697] up delta table: services - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 0 - size: 0 kB
[2024-10-29 14:45:00.043][Debug][pid:2401][datastoreset:243] [Naemon] delta update complete in: 2ms
[2024-10-29 14:45:07.483][Debug][pid:2401][datastoreset:358] [Naemon][r:e60d6e] up delta table: status - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:45:07.483][Debug][pid:2401][datastoreset:730] [Naemon][r:e60d6e] up full table: status - fetch: 0s - sort: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:45:07.483][Debug][pid:2401][datastoreset:358] [Naemon][r:bfb412] up delta table: hosts - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 0 - size: 0 kB
[2024-10-29 14:45:07.484][Debug][pid:2401][datastoreset:358] [Naemon][r:3fa849] up delta table: services - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 0 - size: 0 kB
[2024-10-29 14:45:07.485][Debug][pid:2401][datastoreset:243] [Naemon] delta update complete in: 2ms
[2024-10-29 14:45:14.532][Debug][pid:2401][datastoreset:358] [Naemon][r:6d6bdc] up delta table: status - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:45:14.533][Debug][pid:2401][datastoreset:730] [Naemon][r:6d6bdc] up full table: status - fetch: 0s - sort: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:45:14.534][Debug][pid:2401][datastoreset:358] [Naemon][r:fb6d07] up delta table: hosts - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 0 - size: 0 kB
[2024-10-29 14:45:14.535][Debug][pid:2401][datastoreset:358] [Naemon][r:110e94] up delta table: services - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 0 - size: 0 kB
[2024-10-29 14:45:14.535][Debug][pid:2401][datastoreset:243] [Naemon] delta update complete in: 3ms
[2024-10-29 14:45:21.538][Debug][pid:2401][datastoreset:358] [Naemon][r:8f00ba] up delta table: status - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:45:21.538][Debug][pid:2401][datastoreset:730] [Naemon][r:8f00ba] up full table: status - fetch: 0s - sort: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:45:21.539][Debug][pid:2401][datastoreset:358] [Naemon][r:2f6767] up delta table: hosts - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 0 - size: 0 kB
[2024-10-29 14:45:21.539][Debug][pid:2401][datastoreset:358] [Naemon][r:d764aa] up delta table: services - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 0 - size: 0 kB
[2024-10-29 14:45:21.539][Debug][pid:2401][datastoreset:243] [Naemon] delta update complete in: 1ms
[2024-10-29 14:45:32.032][Debug][pid:2401][datastoreset:358] [NAME1][r:2ae37e] up delta table: status - fetch: 90ms - prep: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:45:32.033][Debug][pid:2401][datastoreset:730] [NAME1][r:2ae37e] up full table: status - fetch: 90ms - sort: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:45:26.482][Debug][pid:2401][datastoreset:358] [NAME1][r:02f80a] up delta table: hosts - fetch: 14ms - prep: 0s - lock: 0s - insert: 0s - count: 6 - size: 2 kB
[2024-10-29 14:45:26.522][Debug][pid:2401][datastoreset:358] [NAME1][r:5fd950] up delta table: services - fetch: 26ms - prep: 0s - lock: 0s - insert: 0s - count: 63 - size: 27 kB
[2024-10-29 14:45:26.554][Debug][pid:2401][datastoreset:243] [NAME1] delta update complete in: 191ms
[2024-10-29 14:45:29.031][Debug][pid:2401][datastoreset:358] [Naemon][r:4ccea5] up delta table: status - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:45:29.031][Debug][pid:2401][datastoreset:730] [Naemon][r:4ccea5] up full table: status - fetch: 0s - sort: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:45:29.031][Debug][pid:2401][datastoreset:358] [Naemon][r:899470] up delta table: hosts - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 0 - size: 0 kB
[2024-10-29 14:45:29.031][Debug][pid:2401][datastoreset:358] [Naemon][r:5568a2] up delta table: services - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 0 - size: 0 kB
[2024-10-29 14:45:29.032][Debug][pid:2401][datastoreset:243] [Naemon] delta update complete in: 1ms
[2024-10-29 14:45:36.271][Debug][pid:2401][datastoreset:358] [Naemon][r:6c94a5] up delta table: status - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:45:36.271][Debug][pid:2401][datastoreset:730] [Naemon][r:6c94a5] up full table: status - fetch: 0s - sort: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:45:36.272][Debug][pid:2401][datastoreset:358] [Naemon][r:b24d69] up delta table: hosts - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 0 - size: 0 kB
[2024-10-29 14:45:36.273][Debug][pid:2401][datastoreset:358] [Naemon][r:841ac3] up delta table: services - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 0 - size: 0 kB
[2024-10-29 14:45:36.273][Debug][pid:2401][datastoreset:243] [Naemon] delta update complete in: 2ms
[2024-10-29 14:45:43.547][Debug][pid:2401][datastoreset:358] [Naemon][r:fbb44b] up delta table: status - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:45:43.547][Debug][pid:2401][datastoreset:730] [Naemon][r:fbb44b] up full table: status - fetch: 0s - sort: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:45:43.547][Debug][pid:2401][datastoreset:358] [Naemon][r:d59308] up delta table: hosts - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 0 - size: 0 kB
[2024-10-29 14:45:43.547][Debug][pid:2401][datastoreset:358] [Naemon][r:37ee34] up delta table: services - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 0 - size: 0 kB
[2024-10-29 14:45:43.548][Debug][pid:2401][datastoreset:243] [Naemon] delta update complete in: 1ms
[2024-10-29 14:45:51.035][Debug][pid:2401][datastoreset:358] [Naemon][r:ac6bc6] up delta table: status - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:45:51.035][Debug][pid:2401][datastoreset:730] [Naemon][r:ac6bc6] up full table: status - fetch: 0s - sort: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:45:51.037][Debug][pid:2401][datastoreset:358] [Naemon][r:8eb47c] up delta table: hosts - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 0 - size: 0 kB
[2024-10-29 14:45:51.038][Debug][pid:2401][datastoreset:442] [Naemon][r:241544] services delta scan going to update 1 timestamps
[2024-10-29 14:45:51.038][Debug][pid:2401][datastoreset:358] [Naemon][r:741ccf] up delta table: services - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:45:51.038][Debug][pid:2401][datastoreset:243] [Naemon] delta update complete in: 4ms
[2024-10-29 14:45:58.038][Debug][pid:2401][datastoreset:358] [Naemon][r:dcdb67] up delta table: status - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:45:58.039][Debug][pid:2401][datastoreset:730] [Naemon][r:dcdb67] up full table: status - fetch: 0s - sort: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:45:58.039][Debug][pid:2401][datastoreset:358] [Naemon][r:4182f6] up delta table: hosts - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 0 - size: 0 kB
[2024-10-29 14:45:58.039][Debug][pid:2401][datastoreset:358] [Naemon][r:4550eb] up delta table: services - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:45:58.040][Debug][pid:2401][datastoreset:243] [Naemon] delta update complete in: 1ms
[2024-10-29 14:46:00.047][Debug][pid:2401][datastoreset:730] [Naemon][r:d0b522] up full table: timeperiods - fetch: 0s - sort: 0s - lock: 0s - insert: 0s - count: 5 - size: 0 kB
[2024-10-29 14:46:00.047][Debug][pid:2401][datastoreset:358] [Naemon][r:83e3ea] up delta table: hostgroups - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 4 - size: 0 kB
[2024-10-29 14:46:00.047][Debug][pid:2401][datastoreset:730] [Naemon][r:83e3ea] up full table: hostgroups - fetch: 0s - sort: 0s - lock: 0s - insert: 0s - count: 4 - size: 0 kB
[2024-10-29 14:46:00.048][Debug][pid:2401][datastoreset:358] [Naemon][r:ec73d4] up delta table: servicegroups - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:46:00.048][Debug][pid:2401][datastoreset:730] [Naemon][r:ec73d4] up full table: servicegroups - fetch: 0s - sort: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:46:00.048][Debug][pid:2401][peer:644] [Naemon] updating timeperiods and host/servicegroup statistics completed (1ms)
[2024-10-29 14:46:05.532][Debug][pid:2401][datastoreset:358] [Naemon][r:794038] up delta table: status - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:46:05.533][Debug][pid:2401][datastoreset:730] [Naemon][r:794038] up full table: status - fetch: 0s - sort: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:46:05.534][Debug][pid:2401][datastoreset:442] [Naemon][r:d9c250] hosts delta scan going to update 1 timestamps
[2024-10-29 14:46:05.534][Debug][pid:2401][datastoreset:358] [Naemon][r:c44314] up delta table: hosts - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:46:05.535][Debug][pid:2401][datastoreset:358] [Naemon][r:7a2ad0] up delta table: services - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 0 - size: 0 kB
[2024-10-29 14:46:05.535][Debug][pid:2401][datastoreset:243] [Naemon] delta update complete in: 3ms
[2024-10-29 14:46:13.026][Debug][pid:2401][datastoreset:358] [Naemon][r:311d5c] up delta table: status - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:46:13.026][Debug][pid:2401][datastoreset:730] [Naemon][r:311d5c] up full table: status - fetch: 0s - sort: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:46:13.027][Debug][pid:2401][datastoreset:358] [Naemon][r:bad282] up delta table: hosts - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 0 - size: 0 kB
[2024-10-29 14:46:13.027][Debug][pid:2401][datastoreset:358] [Naemon][r:6a28d4] up delta table: services - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 0 - size: 0 kB
[2024-10-29 14:46:13.027][Debug][pid:2401][datastoreset:243] [Naemon] delta update complete in: 1ms
[2024-10-29 14:46:22.104][Debug][pid:2401][datastoreset:358] [Naemon][r:67aecc] up delta table: status - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:46:22.104][Debug][pid:2401][datastoreset:730] [Naemon][r:67aecc] up full table: status - fetch: 0s - sort: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:46:22.105][Debug][pid:2401][datastoreset:358] [Naemon][r:4f0cb3] up delta table: hosts - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 0 - size: 0 kB
[2024-10-29 14:46:22.106][Debug][pid:2401][datastoreset:358] [Naemon][r:75e11a] up delta table: services - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:46:22.107][Debug][pid:2401][datastoreset:243] [Naemon] delta update complete in: 3ms
[2024-10-29 14:46:32.106][Debug][pid:2401][datastoreset:358] [Naemon][r:5296ae] up delta table: status - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:46:32.106][Debug][pid:2401][datastoreset:730] [Naemon][r:5296ae] up full table: status - fetch: 0s - sort: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:46:32.106][Debug][pid:2401][datastoreset:358] [Naemon][r:74ee29] up delta table: hosts - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 0 - size: 0 kB
[2024-10-29 14:46:32.107][Debug][pid:2401][datastoreset:358] [Naemon][r:30cc46] up delta table: services - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 0 - size: 0 kB
[2024-10-29 14:46:32.107][Debug][pid:2401][datastoreset:243] [Naemon] delta update complete in: 2ms
[2024-10-29 14:46:42.103][Debug][pid:2401][datastoreset:358] [Naemon][r:9970ad] up delta table: status - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:46:42.103][Debug][pid:2401][datastoreset:730] [Naemon][r:9970ad] up full table: status - fetch: 0s - sort: 0s - lock: 0s - insert: 0s - count: 1 - size: 0 kB
[2024-10-29 14:46:42.104][Debug][pid:2401][datastoreset:358] [Naemon][r:4d81b1] up delta table: hosts - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 0 - size: 0 kB
[2024-10-29 14:46:42.104][Debug][pid:2401][datastoreset:358] [Naemon][r:1159c2] up delta table: services - fetch: 0s - prep: 0s - lock: 0s - insert: 0s - count: 0 - size: 0 kB
[2024-10-29 14:46:42.105][Debug][pid:2401][datastoreset:243] [Naemon] delta update complete in: 2ms
[2024-10-29 14:46:47.102][Info][pid:2401][peer:632] [Naemon] switched to idle interval, last query: 2024-10-29 14:44:46.473596096 -0600 CST (idle timeout: 120)
Thruk 3.18
The text was updated successfully, but these errors were encountered: