daily autocommit

This commit is contained in:
2022-05-26 06:25:06 +02:00
parent 477f5433dc
commit b27ebedb99
10 changed files with 55 additions and 48 deletions
+2 -3
View File
@@ -168,6 +168,8 @@ maybe chmod 0640 'check_mk/cmk-update-agent.cfg'
maybe chmod 0640 'check_mk/docker.cfg'
maybe chmod 0640 'check_mk/mk_inventory.cfg'
maybe chmod 0640 'check_mk/nginx_status.cfg'
maybe chmod 0644 'check_mk/super-server.cfg'
maybe chmod 0644 'check_mk/xinetd-service-template.cfg'
maybe chmod 0755 'cifs-utils'
maybe chmod 0600 'cmk-update-agent.state'
maybe chmod 0755 'console-setup'
@@ -1330,9 +1332,6 @@ maybe chmod 0644 'systemd/system.conf'
maybe chmod 0644 'systemd/system/AdGuardHome.service'
maybe chmod 0644 'systemd/system/autologin@.service'
maybe chmod 0755 'systemd/system/bluetooth.target.wants'
maybe chmod 0644 'systemd/system/check-mk-agent-async.service'
maybe chmod 0644 'systemd/system/check-mk-agent.socket'
maybe chmod 0644 'systemd/system/check-mk-agent@.service'
maybe chmod 0755 'systemd/system/default.target.wants'
maybe chmod 0755 'systemd/system/dev-serial1.device.wants'
maybe chmod 0755 'systemd/system/dhcpcd.service.d'
+5
View File
@@ -0,0 +1,5 @@
# Created by Check_MK Agent Bakery.
# This file is managed via WATO, do not edit manually or you
# lose your changes next time when you update the agent.
auto
+44
View File
@@ -0,0 +1,44 @@
# Copyright (C) 2019 tribe29 GmbH - License: GNU General Public License v2
# This file is part of Checkmk (https://checkmk.com). It is subject to the terms and
# conditions defined in the file COPYING, which is part of this source code package.
# NOTE:
# For users of the Checkmk Agent Bakery, this file is manageged by the corresponding
# monitoring server. In that case, manual changes to this file will be lost upon
# an update of the check-mk-agent package.
service check-mk-agent
{
type = UNLISTED
port = 6556
socket_type = stream
protocol = tcp
wait = no
user = root
# If you use fully redundant monitoring and poll the client
# from more then one monitoring servers in parallel you might
# want to use the agent cache wrapper:
#server = /usr/bin/check_mk_caching_agent
server = /usr/bin/check_mk_agent
# To avoid intentional or unintentional overload due to too many parallel
# queries from one source we set this parameter. It limits the number of
# concurrent connections per source address. If you need more requests
# per source system, you can of course increase or remove this value
# (https://github.com/tribe29/checkmk/pull/157)
per_source = 3
# listen on IPv4 AND IPv6 when available on this host
#flags = IPv6
# configure the IP address(es) of your Nagios server here:
#only_from = 127.0.0.1 10.0.20.1 10.0.20.2
# Don't be too verbose. Don't log every check. This might be
# commented out for debugging. If this option is commented out
# the default options will be used for this service.
log_on_success =
disable = no
}
+1 -1
View File
@@ -1 +1 @@
{'protocol': 'http', 'installed_aghash': 'cda2a50c93cf78cc', 'last_error': None, 'site': 'realm', 'last_check': 1653460466.0004928, 'host_name': 'serviceraspi.realm.local', 'server': '192.168.0.99', 'last_update': 1652340062.2436132, 'host_secret': 'pntxhkgisefetedlluhmbneceelnviymvmrfcsaezocoirlcjurakqmfhjuunxlv', 'user': 'caelebfi', 'pending_hash': None}
{'protocol': 'http', 'installed_aghash': '9a29dcd1a63e17b9', 'last_error': None, 'site': 'realm', 'last_check': 1653536300.6311324, 'host_name': 'serviceraspi.realm.local', 'server': '192.168.0.99', 'last_update': 1653466995.255149, 'host_secret': 'pntxhkgisefetedlluhmbneceelnviymvmrfcsaezocoirlcjurakqmfhjuunxlv', 'user': 'caelebfi', 'pending_hash': None}
@@ -1,15 +0,0 @@
# systemd service definition file
[Unit]
Description=Checkmk agent - Asynchronous background tasks
After=network.target
[Service]
ExecStart=/usr/bin/check_mk_agent
Environment='MK_RUN_SYNC_PARTS=false'
Environment='MK_LOOP_INTERVAL=60'
Type=simple
User=root
[Install]
WantedBy=multi-user.target
-11
View File
@@ -1,11 +0,0 @@
# systemd socket definition file
[Unit]
Description=Checkmk agent socket
[Socket]
ListenStream=6556
Accept=true
MaxConnectionsPerSource=3
[Install]
WantedBy=sockets.target
-16
View File
@@ -1,16 +0,0 @@
# systemd service definition file
[Unit]
Description=Checkmk agent
[Service]
# "-" path prefix makes systemd record the exit code,
# but the unit is not set to failed.
ExecStart=-/usr/bin/check_mk_agent
# this can fail if agent updater is being run by the async service at the same time
ExecStopPost=-/usr/bin/cmk-install-agent
Environment='MK_RUN_ASYNC_PARTS=false'
Type=oneshot
User=root
StandardInput=socket
@@ -1 +1 @@
/etc/systemd/system/check-mk-agent-async.service
/lib/systemd/system/check-mk-agent-async.service
@@ -1 +1 @@
/etc/systemd/system/check-mk-agent.socket
/lib/systemd/system/check-mk-agent.socket
@@ -0,0 +1 @@
/lib/systemd/system/cmk-update-agent.timer