Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-13437

The Info ReST endpoint is not showing the services status

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Fixed
    • Meridian-2021.1.1, 28.0.0
    • Meridian-2021.1.6, 29.0.0
    • REST
    • Security Level: Default (Default Security Scheme)
    • None
    • 2
    • Horizon 2021 - Oct 28 - Nov 10
    • Backlog
    • Hide

      The data returned for this rest endpoint should include the service data.

      Show
      The data returned for this rest endpoint should include the service data.

    Description

      I noticed that when query the /rest/info endpoint, the status of the services (or OpenNMS Daemons) comes as an empty object:

       

      ➜  ~ curl -u admin:admin http://localhost:8980/opennms/rest/info 2>/dev/null | jq
      {
        "displayVersion": "28.0.0",
        "version": "28.0.0",
        "packageName": "opennms",
        "packageDescription": "OpenNMS",
        "ticketerConfig": {
          "plugin": null,
          "enabled": false
        },
        "datetimeformatConfig": {
          "zoneId": "America/New_York",
          "datetimeformat": "yyyy-MM-dd'T'HH:mm:ssxxx"
        },
        "services": {}
      }
      

      Or,

      ➜  ~ curl -u admin:admin http://192.168.205.200:8980/opennms/rest/info 2>/dev/null | jq
      {
        "displayVersion": "2021.1.1",
        "version": "2021.1.1",
        "packageName": "meridian",
        "packageDescription": "OpenNMS Meridian",
        "ticketerConfig": {
          "plugin": null,
          "enabled": false
        },
        "datetimeformatConfig": {
          "zoneId": "America/New_York",
          "datetimeformat": "yyyy-MM-dd'T'HH:mm:ssxxx"
        },
        "services": {}
      }
      

      That's supposed to contain the same information you'd get when running:

      /opt/opennms/bin/opennms -v status
      

       

      Attachments

        Issue Links

          Activity

            People

              cpape Christian Pape
              agalue Alejandro Galue
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.