Troubleshooting DCD - snmp_v3_credentials unknown field error
REST API crashed with an HTTP 500 error when an SNMP credential of type "no_auth_no_cred" was fixed in Werk #13079.
LAST TESTED ON CHECKMK 2.3.0P1
Table of Contents
Problem
In addition to Debug DCD issues manual, you may face the following issue:
{
"title": "Server was about to send an invalid response.",
"status": 500,
"detail": "This is an error of the implementation.",
"ext": {
"errors": {
"snmp_v3_credentials": [
"Unknown field."
]
},
"orig": {
"id": "host",
"domainType": "host_config",
"value": [
...]
}
Solution
“snmp_v3_credentials" is no longer used by Checkmk and, therefore, MUST be removed for the API to work.
Log in as the site user.
root@linux~$ su mysite.
grepforsnmp_v3_credentialsin~/etc/check_mk/conf.d/watoOMD[mysite]:~$ grep snmp_v3_credentials ~/etc/check_mk/conf.d/wato/*.
Go to Setup → Hosts and resave the properties of the hosts and folders found in Step 2
Repeat that for all results of step 2
Reschedule the DCD connection again.