hmmm
i created files
ls -1 /etc/thruk_problem/thruk_local.d/
lmd.conf
thruk_bp_generated.cfg
thruk_templates.cfg
my bp conf from thruk_local.conf
# Business Process
<Component Thruk::Plugin::BP>
# Results will be send back by using the spool folder.
# This folder should point to the 'check_result_path' of your core.
#spool_dir = /var/naemon/rw/check_results
# as alternative to the spool_dir, a livestatus connection can be used
# to send results to the core.
#result_backend = sitename
# Save objects to this file. Content will be overwritten.
objects_save_file = /etc/thruk/thruk_local.d/thruk_bp_generated.cfg
# Save format can be either 'nagios' or 'icinga2'.
#objects_save_format = nagios
# User maintained file containing templates used for business process services.
objects_templates_file = /etc/thruk/thruk_local.d/thruk_templates.cfg
# Command to apply changes to the objects_save_file. If not set and
# and result_backend is used, the restart will be triggered as external command.
objects_reload_cmd = sudo /etc/init.d/thruk reload
# hooks which will be executed before or after saving a single bp.
#pre_save_cmd =
#post_save_cmd =
# global hooks
#post_refresh_cmd =
# Refresh interval defines how often business processes
# will be recalculated and refreshed. (in minutes).
# Set to zero to disable automatic bp calculations.
#refresh_interval = 1
# Favorite custom function will be displayed on the 'Type' tab
# so you don't have to select custom first. Syntax is <name>;<function>
#favorite_custom_function = echo ; echo_function
# Worker
# increase the number of parallel bp calculations
# Set to zero to disable automatic bp calculations.
#worker = 5
# Default filter
# add filter to all business processes, can be set multiple times
#default_filter = add_recursive_output_filter
# default state order from worse to good, use this to override globale default_state_order
#default_state_order = down, unreachable, ...
# read_only
# make all business processes readonly
#read_only = 1
</Component>
I think the problem is spool_dir - I don't know what to set here.
Thruk only aggregates a few nagios for me. When I set spool_dir, I will give the appropriate permissions, after restart I have
/etc/init.d/thruk start
Starting thruk.....failed
Setting --timeout (timeout) to 15
Setting --timeout (timeout) to 15
Setting --output-document (outputdocument) to -
Setting --output-document (outputdocument) to -
Setting --method (method) to POST
Setting --body-data (bodydata) to ''
DEBUG output created by Wget 1.20.3 on linux-gnu.
Reading HSTS entries from /root/.wget-hsts
URI encoding = ‘UTF-8’
--2020-11-09 15:00:18-- http://localhost/thruk/cgi-bin/remote.cgi?startup
Resolving localhost (localhost)... 127.0.0.1, ::1
Caching localhost => 127.0.0.1 ::1
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
Created socket 3.
Releasing 0x0000564d69b82ea0 (new refcount 1).
---request begin---
POST /thruk/cgi-bin/remote.cgi?startup HTTP/1.1
User-Agent: Wget/1.20.3 (linux-gnu)
Accept: */*
Accept-Encoding: identity
Host: localhost
Connection: Keep-Alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 2
---request end---
[BODY data: '']
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 500 Internal Server Error
Date: Mon, 09 Nov 2020 14:00:18 GMT
Server: Apache/2.4.41 (Ubuntu)
Content-Length: 606
Connection: close
Content-Type: text/html; charset=iso-8859-1
---response end---
500 Internal Server Error
URI content encoding = ‘iso-8859-1’
Closed fd 3
2020-11-09 15:00:19 ERROR 500: Internal Server Error.