Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Info

REST API crashed with an HTTP 500 error when an SNMP credential of type "no_auth_no_cred" was fixed in Werk 13079

Status
colourGreen
titleLast tested on Checkmk 2.0.0p16


Panel
borderColorblack
bgColor#f8f8f8
titleTable of Contents

Table of Contents

Problem

In addition to this manual, you may face the following issue:

Code Block
languagebash
themeRDark
{
    "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.

...

  1. Log in as the site user.

    Code Block
    languagebash
    themeRDark
    root@linux~# su mysite

    .

  2. grep in ~/etc/check_mk/conf.d/wato for snmp_v3_credentials

    Code Block
    languagebash
    themeRDark
    OMD[mysite]:~$ grep snmp_v3_credentials ~/etc/check_mk/conf.d/wato/*

    .

  3. Go to Setup → Hosts and resave the properties of the hosts and folders found in Step 2
    Screenshot of properties of host mysite. The save and run service discovery button is highlighted.Image Modified

  4. Repeat that for all results of step 2

  5. Reschedule the DCD connection again.

Filter by label (Content by label)
showLabelsfalse
max5
spacesKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ( "rest_api" , "dcd" , "troubleshooting" ) and type = "page" and space = "KB"
labelsdcd rest_api

...