Sign inSign up
ufm-plugin-ahxmonitor logo

mellanox/ufm-plugin-ahxmonitor

By mellanox

•Updated about 4 years ago

UFM Plugin AHX Monitoring

Image
0

1.6K

mellanox/ufm-plugin-ahxmonitor repository overview

⁠AHX Monitoring

AHX Monitoring is a tool that monitors AHX devices

⁠Overview

AHX monitoring enables monitoring HDR director switch cooling devices (i.e. AHX) and sending events to UFM.

The events are triggered on the switch associated with the cooling device if the monitoring utility encounters an issue.

The monitoring utility runs periodically and communicates with the AHX devices over the Modbus protocol (TCP port 502).

⁠Deployment

To deploy the plugin with UFM Enterprise (SA or HA):

  1. Install the latest UFM version

  2. Pull the latest plugin docker container. Run:

    docker pull mellanox/ufm-plugin-ahxmonitor

    • In HA, pull the plugin on the standby node as well
  3. Deploy the plugin. Run:

    /opt/ufm/scripts/manage_ufm_plugins.sh add -p ahxmonitor

    • If UFM is running, the plugin will be started by UFM immediately. Otherwise, it will be started upon UFM start
  4. Check that the plugin is up and running. Run:

    docker ps

  5. Show the plugin settings and state. Run:

    /opt/ufm/scripts/manage_ufm_plugins.sh show

    /opt/ufm/scripts/manage_ufm_plugins.sh show
    Plugin ahxmonitor:
       Enabled:           Yes
       Plugin tag:        latest
       Shared volumes:    /opt/ufm/files/log:/log,/opt/ufm/files/conf:/opt/ufm/files/conf
       Httpd port:        8910
       State:             running
    

The log file ahxmonitor.log is located in folder /opt/ufm/files/log on the host.

⁠REST APIs

Note: The AHX switch hostname (i.e. ahx_devices.switch_name) is the identifier of the AHX device
⁠Get the monitor configuration

URL: GET ufmRest/plugin/ahxmonitor/monitor/settings

Response

{
   "enable": true,
   "interval": "5m",
   "ahx_devices": [
      {
         "switch_name": "mantaray-switch1-01",
         "primary_ip": "10.210.10.111",
         "secondary_ip": "10.210.20.222",
         "alternative_switch_name": "mantaray-switch1-02"
      }
   ]
}
⁠Set the monitor configuration

URL: PUT ufmRest/plugin/ahxmonitor/monitor/settings

Content Type: Application/json

Payload

{
   "enable": true,
   "interval": "1m",
   "ahx_devices": [
      {
         "switch_name": "switch1-01",
         "primary_ip": "10.10.1.11",
         "secondary_ip": "10.10.2.22",
         "alternative_switch_name": "switch1-02"
      }
   ]
}

Status Codes:

  • No content (204)
  • Bad request (404)
ParameterRequiredDescription
enableYesEnable/Disable AHX monitoring
intervalYesAHX monitoring interval
ahx_devices.switch_nameYesAHX switch hostname (as presented in UFM)
ahx_devices.primary_ipYesPrimary AHX IPv4/IPv6 address
ahx_devices.secondary_ipYesSecondary AHX IPv4/IPv6 address
ahx_devices.alternative_switch_nameNoAlternative AHX switch hostname (as presented in UFM)
⁠Update the monitor configuration

URL: PATCH ufmRest/plugin/ahxmonitor/monitor/settings

Content Type: Application/json

Payload (example: Update the AHX monitoring interval)

{
   "interval": "5m"
}

Status Codes:

  • No content (204)
  • Bad request (404)
⁠Restore the monitor configurtion to default

URL: DELETE ufmRest/plugin/ahxmonitor/monitor/settings

Status Codes:

  • No content (204)
⁠Delete all the AHX devices

URL: DELETE ufmRest/plugin/ahxmonitor/monitor/settings/ahx_devices

Status Codes:

  • No content (204)
⁠Delete AHX device

URL: DELETE ufmRest/plugin/ahxmonitor/monitor/settings/ahx_devices/{switch_name}

Status Codes:

  • No content (204)
  • Bad request (404)
⁠Get the AHX monitoring plugin version

URL: GET ufmRest/plugin/ahxmonitor/app/version

Response

{
   "version": "2.0.0-3"
}

Tag summary

Content type

Image

Digest

sha256:d0265aed7…

Size

177.3 MB

Last updated

about 4 years ago

docker pull mellanox/ufm-plugin-ahxmonitor