Yesterday I upgraded the server and clients to version 2.0.0p16 CRE. All went wel except for one system. On this one I suddenly get this error:
agent] Agent output is encrypted but encryption is disabled by configurationCRIT, Got no information from host
Which is really strange, since I have no encryption configured whatsoever. If I run the agent on the system, there’s no issues, just the normal text output. Same when I use nc to connect to the client from the CheckMK server.
Just wondering what could be causing this issue and how to solve it.
Hi,
looks like a test system where encryption is set. There must be the file encryption.cfg in /etc which have the encryption key. You can remove this file and the communication will run unencrypted.
OMD[digio]:~$ cmk -vvd digsvl001
Connecting via TCP to 172.25.100.91:6556 (10.0s timeout)
[TCPFetcher] Fetch with cache settings: DefaultAgentFileCache(base_path=PosixPath('/omd/sites/digio/tmp/check_mk/cache/digsvl001'), max_age=MaxAge(checking=0, discovery=120, inventory=120), disabled=False, use_outdated=False, simulation=False)
Not using cache (Too old. Age is 103583 sec, allowed is 0 sec)
[TCPFetcher] Execute data source
Reading data from agent
Output is encrypted
Closing TCP connection to 172.25.100.91:6556
ERROR [agent]: Agent output is encrypted but encryption is disabled by configuration(!!)
No piggyback files for 'digsvl001'. Skip processing.
No piggyback files for '172.25.100.91'. Skip processing.
[PiggybackFetcher] Fetch with cache settings: NoCache(base_path=PosixPath('/omd/sites/digio/tmp/check_mk/data_source_cache/piggyback/digsvl001'), max_age=MaxAge(checking=0, discovery=120, inventory=120), disabled=False, use_outdated=False, simulation=False)
[PiggybackFetcher] Execute data source
Loading autochecks from /omd/sites/digio/var/check_mk/autochecks/digsvl001.mk
No persisted sections loaded
No piggyback files for 'digsvl001'. Skip processing.
No piggyback files for '172.25.100.91'. Skip processing.
Maybe there are some weird characters in the output which make checkmk think the output is encrypted. Can you verify that locally on the monitored host?
I found that there was indeed something strange. For some reason the directory MK_VARDIR (/var/lib/check_mk_agent) was not there. And in the 2.0.0p16 version of the agent this code is new:
# let RTCs know about this remote
[ -d "${MK_VARDIR}/rtc_remotes" ] || mkdir "${MK_VARDIR}/rtc_remotes"
[ -n "${REMOTE}" ] && touch "${MK_VARDIR}/rtc_remotes/${REMOTE}"
As the creation of these directories failed, indeed strange output was generated, resulting in the server believing the output was encrypted. After manually creating /var/lib/check_mk_agent the issue went away.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.