-
Notifications
You must be signed in to change notification settings - Fork 157
Description
Describe the bug
I have a centralised thruk depending on 4 backends.
I have just about 20 Business Processes. I'm using this for the first time recently so could well have fouled up here.
The cron job:
-
-
-
-
- cd /usr/share/thruk && /bin/bash -l -c '/usr/bin/thruk bp all' >/dev/null 2>>/var/lib/thruk/cron.log
-
-
-
Will fail unless I use "thruk bp all -w 1" so one worker.
So I have upped the number of CPU's thinking this would fix it. I now have 4 vcpu's from 2 vcpu's and its still the same.
Here is part of the output.
Use of uninitialized value in list assignment at /usr/share/thruk/lib/Thruk/Base.pm line 270.
Use of uninitialized value in list assignment at /usr/share/thruk/lib/Thruk/Base.pm line 270.
[ERROR] bp 'Infrastructure SIEM' failed: Can't use string ("0") as a HASH ref while "strict refs" in use at /usr/share/thruk/l
ib/Thruk/Backend/Manager.pm line 2171.
[ERROR] bp 'Infrastructure Load Balancers' failed: Can't use string ("0") as a HASH ref while "strict refs" in use at /usr/sha
re/thruk/lib/Thruk/Backend/Manager.pm line 2171.
It only appeared after about 19 Business Processes so it is to do with the number of objects. But I put 20+ dummy ones on another host and it didn't happen so its something to do with how many objects there are.
I can leave it as 1 worker, I can live with that for sure, but thought I'd pass this on for consideration.
Thruk Version
thruk-3.08.3-35.1.x86_64
To Reproduce
I have tarred up the /etc/thruk/bp/*.tbp file to the backend host which actually has nearly all these checks.
The host with the issue is the central service - so relies on feeds from backends.
When I tar up and check ... it works.
/bin/bash -l -c '/usr/bin/thruk bp all'
OK - 21 business processes updated in 1.32s (15.9/s)
How big are my business processes? I can see 188 labels in the .tbp config files.
grep label *.tbp | wc -l
188
Expected behavior
Well with "-w 1" that looks normal. It's quiet.
/bin/bash -l -c '/usr/bin/thruk bp all -w 1'
OK - 21 business processes updated in 1.32s (15.9/s)
Screenshots
Not necessary really.
Desktop (please complete the following information):
It's not a GUI issue, its a backend issue.
Additional context
Well I offer it for consideration. Thank-you