BP with several backend

40 views
Skip to first unread message

Jean-Malo Beaujour

unread,
Dec 2, 2020, 9:53:04 AM12/2/20
to Thruk

Hello
We have 2 NAGIOS backends with their own THRUK to calculate BPs (GET by livestatus backend and POST via checkresults file)
We also have 4 VM Thruk with load balancing on F5 and presenting a VIP URL.
We also have 12 shared or dedicated Gearman workers.

Our BPs are well calculated.
But, when we look at the detail of a BP (thruk / cgi-bin / bp.cgi? Action = details & bp = f2d85: 123) from a host on the VIP, it points to the right ID but to the wrong backend. And so it displays a bad graph.

Objective: 1500 BP (1000 + 500)

What is the recommended configuration for THRUK BP with multiple BACKENDs?
Thank you

Sven Nierlein

unread,
Dec 7, 2020, 11:25:27 AM12/7/20
to th...@googlegroups.com, Jean-Malo Beaujour
Hi,

To fetch a list of remote BPs Thruk simply queries all backends connected by http and looks for hosts
with BP custom variables. It then uses that Backend to redirect the BP view too. Not sure where this
goes wrong in your case. To which Backend does it point?

Cheers,
Sven
> --
> You received this message because you are subscribed to the Google Groups "Thruk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to thruk+un...@googlegroups.com <mailto:thruk+un...@googlegroups.com>.
> To view this discussion on the web visit https://groups.google.com/d/msgid/thruk/59c72226-a033-48ca-82fe-bbc45c857d68n%40googlegroups.com <https://groups.google.com/d/msgid/thruk/59c72226-a033-48ca-82fe-bbc45c857d68n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Jean-Malo Beaujour

unread,
Dec 18, 2020, 12:55:32 PM12/18/20
to Thruk
Hello Sven,
host nagios (Nagios Core 4.4.5) do not have BP custom variable, they are created by Nagios XI with our own templates to assign correct nagios parameters (notification, notification period, etc)
Which BP custom variable and value are needed ? I see _THRUK_BP_ID and _THRUK_NODE_ID on Thruk demo site, but nothing for backend

To resume:
NAGIOS CORE Backend_id = abc1 with thruk bp_id = 1 for host = h1
NAGIOS CORE Backend_id = efg1 with thruk bp_id = 1 for host = h2
content of the 2 BP are different

THRUK via F5, on host status detail view, "Show buziness process" (on host h2 created for BP by Backend_id = efg1) point to backend_id = abc1 with thruk bp_id = 1

Sven Nierlein

unread,
Dec 22, 2020, 1:24:46 PM12/22/20
to th...@googlegroups.com, Jean-Malo Beaujour
The backend id is not set as custom variable. It is set by fetching the hosts and assigning the backend id according to where the host was
found. BP ids are not uniq across multiple Thruk instances, there can be a ID 1 for each Thruk. Besides that, i don't know what the question is?



On 18.12.20 18:55, Jean-Malo Beaujour wrote:
> Hello Sven,
> host nagios (Nagios Core 4.4.5) do not have BP custom variable, they are created by Nagios XI with our own templates to assign correct
> nagios parameters (notification, notification period, etc)
> Which BP custom variable and value are needed ? I see _THRUK_BP_ID and _THRUK_NODE_ID on Thruk demo site, but nothing for backend
>
> To resume:
> NAGIOS CORE Backend_id = abc1 with thruk bp_id = 1 for host = h1
> NAGIOS CORE Backend_id = efg1 with thruk bp_id = 1 for host = h2
> content of the 2 BP are different
>
> THRUK via F5, on host status detail view, "Show buziness process" (on host h2 created for BP by Backend_id = *efg1*) point to backend_id =
> *abc1* with thruk bp_id = 1
> <https://groups.google.com/d/msgid/thruk/59c72226-a033-48ca-82fe-bbc45c857d68n%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/thruk/59c72226-a033-48ca-82fe-bbc45c857d68n%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
> --
> You received this message because you are subscribed to the Google Groups "Thruk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to thruk+un...@googlegroups.com
> <mailto:thruk+un...@googlegroups.com>.
> To view this discussion on the web visit https://groups.google.com/d/msgid/thruk/0c0df3e7-5a80-42ac-a424-e3a37acb3b0dn%40googlegroups.com
> <https://groups.google.com/d/msgid/thruk/0c0df3e7-5a80-42ac-a424-e3a37acb3b0dn%40googlegroups.com?utm_medium=email&utm_source=footer>.

Jean-Malo Beaujour

unread,
Dec 24, 2020, 6:54:08 AM12/24/20
to Thruk
Hello Sven
The question is: why when we choose the detailed view of a BP it displays that of the wrong backend while keeping in the URL the right id of the desired BP and backend?
it seems not to redirect its search to the right backend
Reply all
Reply to author
Forward
0 new messages