I have used yamllint.com to verify it is a valid file. showconfig just shows the configuration, but is missing the lines I added. Here’s the output:
PS C:\Program Files (x86)\checkmk\service> .\check_mk_agent.exe showconfig
# Environment Variables:
# MK_LOCALDIR="C:\ProgramData\checkmk\agent\local"
# MK_STATEDIR="C:\ProgramData\checkmk\agent\state"
# MK_PLUGINSDIR="C:\ProgramData\checkmk\agent\plugins"
# MK_TEMPDIR="C:\ProgramData\checkmk\agent\tmp"
# MK_LOGDIR="C:\ProgramData\checkmk\agent\log"
# MK_CONFDIR="C:\ProgramData\checkmk\agent\config"
# MK_SPOOLDIR="C:\ProgramData\checkmk\agent\spool"
# MK_INSTALLDIR="C:\ProgramData\checkmk\agent\install"
# MK_MSI_PATH="C:\ProgramData\checkmk\agent\update"
# MK_MODULESDIR="C:\ProgramData\checkmk\agent\modules"
# Loaded Config Files:
# system: 'C:\Program Files (x86)\checkmk\service\check_mk.yml'
# bakery: 'C:\ProgramData\checkmk\agent\bakery'
# user : 'C:\ProgramData\checkmk\agent\check_mk.user.yml'
#
global:
enabled: yes
only_from: ~
port: 6556
ipv6: no
encrypted: no
passphrase: secret
execute: [exe, bat, vbs, cmd, ps1]
async: yes
try_kill_plugin_process: safe
sections:
- check_mk
- mrpe
- skype
- spool
- plugins
- local
- winperf
- uptime
- systemtime
- df
- mem
- services
- msexch
- dotnet_clrmemory
- wmi_webservices
- wmi_cpuload
- ps
- fileinfo
- logwatch
- openhardwaremonitor
- agent_plugins
disabled_sections: []
realtime:
enabled: no
timeout: 90
port: 6559
encrypted: no
passphrase: this is my password
run: [mem, df, winperf_processor]
wmi_timeout: 5
cpuload_method: use_perf
logging:
location: ~
file: ~
debug: yes
windbg: yes
eventlog: yes
max_file_count: 5
max_file_size: 8000000
ps:
enabled: yes
use_wmi: yes
full_path: no
winperf:
enabled: yes
exe: agent
trace: no
fork: yes
prefix: winperf
timeout: 10
counters:
- 234: phydisk
- 510: if
- 238: processor
fileinfo:
enabled: yes
path: []
logwatch:
enabled: yes
sendall: no
vista_api: no
skip_duplicated: no
max_size: 500000
max_line_length: -1
max_entries: -1
timeout: -1
logfile:
- Parameters: ignore
- State: ignore
- "*": warn nocontext
plugins:
enabled: yes
player: ""
max_wait: 60
async_start: yes
folders: [$CUSTOM_PLUGINS_PATH$, $BUILTIN_PLUGINS_PATH$]
execution:
- pattern: $CUSTOM_PLUGINS_PATH$\cmk-update-agent.exe
run: no
- pattern: $CUSTOM_PLUGINS_PATH$\*.*
timeout: 60
run: yes
- pattern: $BUILTIN_PLUGINS_PATH$\*.*
timeout: 60
run: no
- pattern: "*"
run: no
local:
enabled: yes
player: ""
max_wait: 60
async_start: true
execution:
- pattern: "*.*"
timeout: 60
run: yes
mrpe:
enabled: yes
parallel: no
timeout: 60
config: ~
modules:
enabled: yes
python: auto
quick_reinstall: no
table:
- name: python-3
exts: [.checkmk.py, .py]
exec: .venv\Scripts\python.exe {}
system:
enabled: yes
controller:
run: yes
detect_proxy: no
validate_api_cert: no
check: yes
force_legacy: no
agent_channel: mailslot
local_only: yes
on_crash: ignore
firewall:
mode: configure
port: auto
cleanup_uninstall: smart
wait_network: 30
service:
restart_on_crash: yes
error_mode: log
start_mode: auto
One thing to note, when running reload_config, there are two warnings, but it still seems to finish the reload. Not sure what it wants to do with Mails:
PS C:\Program Files (x86)\checkmk\service> .\check_mk_agent.exe reload_config
Reloading configuration...
Asking for reload service
Failed to send data to mail slot
Asking for reload executable
Failed to send data to mail slot
Done.