Ad Widget

Collapse

New Template for Rittal CMC III Processing Unit (Rittal Cabinet)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • n0ctem
    Junior Member
    • Jul 2025
    • 8

    #1

    New Template for Rittal CMC III Processing Unit (Rittal Cabinet)

    Hello zabbix community,
    I have been working on a template for Rittal CMC III Processing Unit (Rittal Cabinet). I would like to ask for help testing the template and suggesting improvements to it. The triggers are still work in progress. Please try the template and report any errors you encounter. The template can be found on my github. It uses SNMPv2, so just use the ip address of CMC III PU to connect it to Zabbix.
    Contribute to n0ctem32/zabbix-rittal-template development by creating an account on GitHub.
  • sgtserge
    Junior Member
    • Oct 2023
    • 7

    #2
    Hi, I'm testing your template on Zabbix 7.0.
    I get preprocessing failed on URL item, if i test it and do "get value" it works, but if i do "get value and test" i get the error below


    Also I didn't find any item for temperature, which is likely to be useful, OID should be 1.3.6.1.4.1.2606.7.4.2.2.1.10.1.2.

    Thank you

    Sergio

    Comment

    • srm
      Junior Member
      • Sep 2025
      • 1

      #3
      Hi,

      I'm currently migrating our CMC-III monitoring to Zabbix. What a funny coincidence that you've just started developing a template for it. I am actually only interested in about 25 SNMP OIDs from our CMC-III, so I simply manually added these into a template, being happy with the result.

      I've tested your template with Zabbix 7.4, though, and I'd be happy to give some feedback.

      We run one CMC-III Processing Unity and three CMC-III I/O Units. I get a lot of values (151 items) from the "SNMP walk devices: Device discovery" report.​ Not sure whether this is what you had in mind (see attached image).

      Click image for larger version  Name:	1756905761.png Views:	4 Size:	97.7 KB ID:	506858



      In your template there is already an item "SNMP walk variable names​", which could be used / might be intended for the sensor/variable discovery.

      For testing, I added the following to your template, to discover variables:

      Code:
            discovery_rules:
      ​        [...]
              - uuid: 4e014eae7c74422aa46d16d0d9b4808a
                name: 'Device variables'
                type: DEPENDENT
                key: variable.discovery
                description: 'Used for discovering variables from Rittal-cmcIII devices.'
                item_prototypes:
                  - uuid: 44977ed9b96a485faf7b04db3052f521
                    name: 'Variable {#VAR.NAME}'
                    type: DEPENDENT
                    key: 'dev.variable[cmcIIIVar.{#SNMPINDEX}]'
                    value_type: TEXT
                    description: |
                      MIB: RITTAL-CMC-III-MIB
                      Article number of device connected to CMCIII PU.
                    preprocessing:
                      - type: SNMP_WALK_VALUE
                        parameters:
                          - '1.3.6.1.4.1.2606.7.4.2.2.1.10.{#SNMPINDEX}'
                          - '0'
                      - type: DISCARD_UNCHANGED_HEARTBEAT
                        parameters:
                          - 1h
                    master_item:
                      key: system.variable.names.walk
                master_item:
                  key: system.variable.names.walk
                preprocessing:
                  - type: SNMP_WALK_TO_JSON
                    parameters:
                      - '{#VAR.NAME}'
                      - 1.3.6.1.4.1.2606.7.4.2.2.1.3
                      - '0'
                  - type: DISCARD_UNCHANGED_HEARTBEAT
                    parameters:
                      - 1h​
      ​
      With this discovery rule I'm getting:

      Click image for larger version  Name:	1756905977.png Views:	4 Size:	121.4 KB ID:	506859

      However, in the preprocessing SNMP_WALK_VALUE step, this 1.3.6.1.4.1.2606.7.4.2.2.1.10.{#SNMPINDEX}' is not valid.

      My OIDs are looking like this (which is the same sgtserge says for his temperature sensor):

      iso.3.6.1.4.1.2606.7.4.2.2.1.3.8.41 = STRING: "Input 7.Status"
      iso.3.6.1.4.1.2606.7.4.2.2.1.10.8.41 = STRING: "OK"
      iso.3.6.1.4.1.2606.7.4.2.2.1.11.8.41 = INTEGER: 4

      I guess I would need something like 1.3.6.1.4.1.2606.7.4.2.2.1.10.{#DEVICEID}.{#SNMPIN DEX}, but ​I'm not deep enough into Zabbix to understand how you would do this.
      I'm happy to test or provide example data if this helps.

      Best regards,
      Sven.
      Last edited by srm; 04-09-2025, 14:50.

      Comment

      • SteveHauke
        Junior Member
        • Nov 2025
        • 1

        #4
        Hello,

        I just tried a bit with your template and needed the temperatures and humidity sensors for our Rittal CMC III.
        So I added the discovery for them.
        Sadly it is too complex for me to get the DEVICE.ALIAS in the item name.
        I tried to map the physindex to the DEVICEALIAS but it is not really possible.
        Tried different things like javascript or external script, but nothing worked well.

        Code:
        zabbix_export:
          version: '7.4'
          template_groups:
            - uuid: 7df96b18c230490a9a0a9e2307226338
              name: Templates
          templates:
            - uuid: 5bfe3d50dc4642dfae91fd1762ad88a4
              template: 'Rittal CMC III PU'
              name: 'Rittal CMC III PU'
              description: 'Template für Rittal CMC III Processing Units mit Geräte- und Temperatur-Discovery inkl. Alias-Verknüpfung.'
              groups:
                - name: Templates
              items:
                - uuid: 96aa5166e31e4cff98178bb1b4f327a8
                  name: URL
                  type: SNMP_AGENT
                  snmp_oid: 1.3.6.1.4.1.2606.7.4.1.2.1.16.1
                  key: 'dev.url[cmcIIIDevURL.{#SNMPINDEX}]'
                  value_type: TEXT
                  description: |
                    MIB: RITTAL-CMC-III-MIB
                    URL to device page of CMCIII PU (if available).
                  preprocessing:
                    - type: SNMP_WALK_VALUE
                      parameters:
                        - '1.3.6.1.4.1.2606.7.4.1.2.1.16.{#SNMPINDEX}'
                        - '0'
                    - type: DISCARD_UNCHANGED_HEARTBEAT
                      parameters:
                        - 1h
                  tags:
                    - tag: component
                      value: device
                - uuid: e35023be2d454e069c6d6deb3e6dcc50
                  name: 'SNMP walk devices'
                  type: SNMP_AGENT
                  snmp_oid: 'walk[1.3.6.1.4.1.2606.7.4.1.2.1]'
                  key: system.devices.walk
                  history: '0'
                  value_type: TEXT
                  description: 'Used for discovering device from RITTAL-CMC-III-MIB.'
                  tags:
                    - tag: component
                      value: raw
                - uuid: dc2a3bbbb54142f08066f68ca0d0d373
                  name: 'SNMP walk variable names'
                  type: SNMP_AGENT
                  snmp_oid: 'walk[1.3.6.1.4.1.2606.7.4.2.2.1.3]'
                  key: system.variable.names.walk
                  history: '0'
                  value_type: TEXT
                  description: 'Used for discovering variable names from RITTAL-CMC-III-MIB.'
                  tags:
                    - tag: component
                      value: raw
                - uuid: 96aa5166e31e4cff98178bb1b4f327a9
                  name: 'SNMP walk device alias'
                  type: SNMP_AGENT
                  snmp_oid: 'walk[1.3.6.1.4.1.2606.7.4.1.2.1.3]'
                  key: system.device.alias.walk
                  history: '0'
                  value_type: TEXT
                  description: 'Rohdaten für die Aliasnamen der Geräte.'
                  tags:
                    - tag: component
                      value: raw
              discovery_rules:
                - uuid: a41f287552f54e1d976f766652a9a306
                  name: 'Device discovery'
                  type: DEPENDENT
                  key: device.discovery
                  description: 'Used for discovering devices from Rittal-cmcIIIDevice.'
                  item_prototypes:
                    - uuid: a7212222bd7c4d15a6c94be01f09119f
                      name: 'Device {#DEV.ALIAS}: Article'
                      type: DEPENDENT
                      key: 'dev.article[cmcIIIDevArtNr.{#SNMPINDEX}]'
                      value_type: TEXT
                      description: |
                        MIB: RITTAL-CMC-III-MIB
                        Article number of device connected to CMCIII PU.
                      preprocessing:
                        - type: SNMP_WALK_VALUE
                          parameters:
                            - '1.3.6.1.4.1.2606.7.4.1.2.1.7.{#SNMPINDEX}'
                            - '0'
                        - type: DISCARD_UNCHANGED_HEARTBEAT
                          parameters:
                            - 1h
                      master_item:
                        key: system.devices.walk
                      tags:
                        - tag: component
                          value: device
                        - tag: device
                          value: '{#DEV.ALIAS}'
                    - uuid: c5c031b47b16405e89d48fe5087d74df
                      name: 'Device {#DEV.ALIAS}: Position'
                      type: DEPENDENT
                      key: 'dev.bus[cmcIIIDevBus.{#SNMPINDEX}]'
                      trends: '0'
                      description: |
                        MIB: RITTAL-CMC-III-MIB
                        Position (order) of device in CAN bus connected to CMCIII PU.
                      preprocessing:
                        - type: SNMP_WALK_VALUE
                          parameters:
                            - '1.3.6.1.4.1.2606.7.4.1.2.1.9.{#SNMPINDEX}'
                            - '0'
                        - type: DISCARD_UNCHANGED_HEARTBEAT
                          parameters:
                            - 1h
                      master_item:
                        key: system.devices.walk
                      tags:
                        - tag: bus
                          value: '{#BUS.NAME}'
                        - tag: component
                          value: device
                        - tag: device
                          value: '{#DEV.NAME}'
                    - uuid: a060f3aa9dfd42dc9866650a8e99963e
                      name: 'Device {#DEV.ALIAS}: Last Change'
                      type: DEPENDENT
                      key: 'dev.change[cmcIIIDevLastChange.{#SNMPINDEX}]'
                      trends: '0'
                      units: uptime
                      description: |
                        MIB: RITTAL-CMC-III-MIB
                        Timestamp of last change of device connected to CMCIII PU according to operating time cmcIIIUnitUpTime.
                      preprocessing:
                        - type: SNMP_WALK_VALUE
                          parameters:
                            - '1.3.6.1.4.1.2606.7.4.1.2.1.15.{#SNMPINDEX}'
                            - '0'
                        - type: DISCARD_UNCHANGED_HEARTBEAT
                          parameters:
                            - 1h
                      master_item:
                        key: system.devices.walk
                      tags:
                        - tag: component
                          value: device
                        - tag: device
                          value: '{#DEV.NAME}'
                    - uuid: 7d5c92bac898404db5f3684ca81ddbb1
                      name: 'Device {#DEV.ALIAS}: Firmware version'
                      type: DEPENDENT
                      key: 'dev.fw[cmcIIIDevFW.{#SNMPINDEX}]'
                      value_type: TEXT
                      description: |
                        MIB: RITTAL-CMC-III-MIB
                        FW version of device connected to CMCIII PU.
                      preprocessing:
                        - type: SNMP_WALK_VALUE
                          parameters:
                            - '1.3.6.1.4.1.2606.7.4.1.2.1.11.{#SNMPINDEX}'
                            - '0'
                        - type: DISCARD_UNCHANGED_HEARTBEAT
                          parameters:
                            - 1h
                      master_item:
                        key: system.devices.walk
                      tags:
                        - tag: component
                          value: device
                        - tag: device
                          value: '{#DEV.NAME}'
                    - uuid: d2f1062f804c4e8ba0274eb6a094a57b
                      name: 'Device {#DEV.ALIAS}: Hardware version'
                      type: DEPENDENT
                      key: 'dev.hw[cmcIIIDevHW.{#SNMPINDEX}]'
                      value_type: TEXT
                      description: |
                        MIB: RITTAL-CMC-III-MIB
                        HW version of device connected to CMCIII PU.
                      preprocessing:
                        - type: SNMP_WALK_VALUE
                          parameters:
                            - '1.3.6.1.4.1.2606.7.4.1.2.1.12.{#SNMPINDEX}'
                            - '0'
                        - type: DISCARD_UNCHANGED_HEARTBEAT
                          parameters:
                            - 1h
                      master_item:
                        key: system.devices.walk
                      tags:
                        - tag: component
                          value: device
                        - tag: device
                          value: '{#DEV.NAME}'
                    - uuid: 8e3a9c1fc2184762bede8739548ed703
                      name: 'Device {#DEV.ALIAS}: Location'
                      type: DEPENDENT
                      key: 'dev.location[cmcIIIDevLocation.{#SNMPINDEX}]'
                      value_type: TEXT
                      description: |
                        MIB: RITTAL-CMC-III-MIB
                        Location of device connectd to CMCIII PU.
                      preprocessing:
                        - type: SNMP_WALK_VALUE
                          parameters:
                            - '1.3.6.1.4.1.2606.7.4.1.2.1.8.{#SNMPINDEX}'
                            - '0'
                        - type: DISCARD_UNCHANGED_HEARTBEAT
                          parameters:
                            - 1h
                      master_item:
                        key: system.devices.walk
                      tags:
                        - tag: component
                          value: device
                        - tag: device
                          value: '{#DEV.NAME}'
                    - uuid: b2f2efabe4474b9c9eb3c5463ee14062
                      name: 'Device {#DEV.ALIAS}: Maximum power consumption'
                      type: DEPENDENT
                      key: 'dev.maximum.power.consumption[cmcIIIDevCurrentMaxConsumption.{#SNMPINDEX}]'
                      trends: '0'
                      units: mA
                      description: |
                        MIB: RITTAL-CMC-III-MIB
                        Maximum power consumption of device in mA.
                      preprocessing:
                        - type: SNMP_WALK_VALUE
                          parameters:
                            - '1.3.6.1.4.1.2606.7.4.1.2.1.21.{#SNMPINDEX}'
                            - '0'
                      master_item:
                        key: system.devices.walk
                      tags:
                        - tag: component
                          value: device
                        - tag: component
                          value: power
                        - tag: device
                          value: '{#DEV.NAME}'
                    - uuid: fff2088697d64b6cbcf0c0f164decf43
                      name: 'Device {#DEV.ALIAS}: Standby power consumption'
                      type: DEPENDENT
                      key: 'dev.minimum.power.consumption[cmcIIIDevCurrentMinConsumption.{#SNMPINDEX}]'
                      trends: '0'
                      units: mA
                      description: |
                        MIB: RITTAL-CMC-III-MIB
                        Standby power consumption of device in mA.
                      preprocessing:
                        - type: SNMP_WALK_VALUE
                          parameters:
                            - '1.3.6.1.4.1.2606.7.4.1.2.1.20.{#SNMPINDEX}'
                            - '0'
                      master_item:
                        key: system.devices.walk
                      tags:
                        - tag: component
                          value: device
                        - tag: component
                          value: power
                        - tag: device
                          value: '{#DEV.NAME}'
                    - uuid: 3713f041332b4a809070ee5372b02872
                      name: 'Device {#DEV.ALIAS}: Type'
                      type: DEPENDENT
                      key: 'dev.name[cmcIIIDevName.{#SNMPINDEX}]'
                      value_type: TEXT
                      description: |
                        MIB: RITTAL-CMC-III-MIB
                        Type pf device chassis connected to CMCIII PU.
                      preprocessing:
                        - type: SNMP_WALK_VALUE
                          parameters:
                            - '1.3.6.1.4.1.2606.7.4.1.2.1.2.{#SNMPINDEX}'
                            - '0'
                        - type: DISCARD_UNCHANGED_HEARTBEAT
                          parameters:
                            - 1h
                      master_item:
                        key: system.devices.walk
                      tags:
                        - tag: component
                          value: device
                        - tag: device
                          value: '{#DEV.NAME}'
                    - uuid: 8025545a86d34077bbf0ddc741428659
                      name: 'Device {#DEV.ALIAS}: Serial number'
                      type: DEPENDENT
                      key: 'dev.serial[cmcIIIDevSerial.{#SNMPINDEX}]'
                      trends: '0'
                      description: |
                        MIB: RITTAL-CMC-III-MIB
                        Serial number of device connected to CMCIII PU.
                      preprocessing:
                        - type: SNMP_WALK_VALUE
                          parameters:
                            - '1.3.6.1.4.1.2606.7.4.1.2.1.13.{#SNMPINDEX}'
                            - '0'
                        - type: DISCARD_UNCHANGED_HEARTBEAT
                          parameters:
                            - 1h
                      master_item:
                        key: system.devices.walk
                      tags:
                        - tag: component
                          value: device
                        - tag: device
                          value: '{#DEV.NAME}'
                    - uuid: 4c5d949860ae49ceacf4673f7c7a9b20
                      name: 'Device {#DEV.ALIAS}: Status Text'
                      type: DEPENDENT
                      key: 'dev.status.text[cmcIIIDevStatusText.{#SNMPINDEX}]'
                      value_type: TEXT
                      description: |
                        MIB: RITTAL-CMC-III-MIB
                        Latest status of this device.
                      preprocessing:
                        - type: SNMP_WALK_VALUE
                          parameters:
                            - '1.3.6.1.4.1.2606.7.4.1.2.1.19.{#SNMPINDEX}'
                            - '0'
                      master_item:
                        key: system.devices.walk
                      tags:
                        - tag: component
                          value: device
                        - tag: device
                          value: '{#DEV.NAME}'
                    - uuid: 7b04d570aeb5497cae105bea2851c1de
                      name: 'Device {#DEV.ALIAS}: Status'
                      type: DEPENDENT
                      key: 'dev.status[cmcIIIDevStatus.{#SNMPINDEX}]'
                      value_type: TEXT
                      description: |
                        MIB: RITTAL-CMC-III-MIB
                        General Status of device connected to CMCIII PU
                        (1) Device is not available
                        (2) OK
                        (3) Device detected, confirmation required
                        (4) Device lost (disconnected), confirmation required
                        (5) Device changed
                        (6) Error
                        (7) Firmware Update pending
                        (8) Firmware Update running.
                      preprocessing:
                        - type: SNMP_WALK_VALUE
                          parameters:
                            - '1.3.6.1.4.1.2606.7.4.1.2.1.6.{#SNMPINDEX}'
                            - '0'
                        - type: DISCARD_UNCHANGED_HEARTBEAT
                          parameters:
                            - 1h
                      master_item:
                        key: system.devices.walk
                      tags:
                        - tag: component
                          value: device
                        - tag: device
                          value: '{#DEV.NAME}'
                  master_item:
                    key: system.devices.walk
                  preprocessing:
                    - type: SNMP_WALK_TO_JSON
                      parameters:
                        - '{#DEV.NAME}'
                        - 1.3.6.1.4.1.2606.7.4.1.2.1.2
                        - '0'
                        - '{#BUS.NAME}'
                        - 1.3.6.1.4.1.2606.7.4.1.2.1.9
                        - '0'
                        - '{#DEV.ALIAS}'
                        - 1.3.6.1.4.1.2606.7.4.1.2.1.3
                        - '0'
                    - type: DISCARD_UNCHANGED_HEARTBEAT
                      parameters:
                        - 1h
                - uuid: a1b0a03fe96b459c974d6240028a6098
                  name: 'Feuchtigkeits-Sensoren Discovery mit Alias'
                  type: DEPENDENT
                  key: humidity.discovery
                  filter:
                    evaltype: OR
                    conditions:
                      - macro: '{#VAR.NAME}'
                        value: 'Humidity\.Value'
                  description: 'Automatische Erkennung aller Feuchtigkeitssensoren am CMC III mit Alias-Verknüpfung.'
                  item_prototypes:
                    - uuid: 9c49937b7c2f4eb79bda4e8c64efddcd
                      name: 'Feuchtigkeit {#VAR.NAME}'
                      type: SNMP_AGENT
                      snmp_oid: '1.3.6.1.4.1.2606.7.4.2.2.1.11.{#SNMPINDEX}'
                      key: 'humidity.value[{#SNMPINDEX}]'
                      value_type: FLOAT
                      units: '%'
                      preprocessing:
                        - type: MULTIPLIER
                          parameters:
                            - '0.01'
                      description: 'Feuchtigkeitswert des Sensors {#VAR.NAME}'
                      tags:
                        - tag: component
                          value: humidity
                  master_item:
                    key: system.variable.names.walk
                  preprocessing:
                    - type: SNMP_WALK_TO_JSON
                      parameters:
                        - '{#VAR.NAME}'
                        - 1.3.6.1.4.1.2606.7.4.2.2.1.3
                        - '0'
                        - '{#SNMPINDEX}'
                        - index
                        - '0'
                        - '{#PHYSINDEX}'
                        - 1.3.6.1.4.1.2606.7.4.2.2.1.15
                        - '0'
                        - '{#DEVICEALIAS}'
                        - 1.3.6.1.4.1.2606.7.4.1.2.1.3
                        - '0'
                  lld_macro_paths:
                    - lld_macro: '{#VAR.NAME}'
                      path: '$.name'
                    - lld_macro: '{#SNMPINDEX}'
                      path: '$.index'
                    - lld_macro: '{#PHYSINDEX}'
                      path: '$.physindex'
                    - lld_macro: '{#DEVICEINDEX}'
                      path: '$.deviceindex'
                    - lld_macro: '{#DEVICEALIAS}'
                      path: '$.devicealias'
                - uuid: 649c04a7a8cb46438f0a8b7ad4c2197f
                  name: 'Temperatur-Sensoren Discovery mit Alias'
                  type: DEPENDENT
                  key: temperature.discovery
                  filter:
                    evaltype: OR
                    conditions:
                      - macro: '{#VAR.NAME}'
                        value: 'Temperature\.Value'
                  description: 'Automatische Erkennung aller Temperatursensoren am CMC III mit Alias-Verknüpfung.'
                  item_prototypes:
                    - uuid: 48a832fee15d46a3a090c3e3789ed765
                      name: 'Temperatur {#VAR.NAME}'
                      type: SNMP_AGENT
                      snmp_oid: '1.3.6.1.4.1.2606.7.4.2.2.1.11.{#SNMPINDEX}'
                      key: 'temperature.value[{#SNMPINDEX}]'
                      value_type: FLOAT
                      units: °C
                      preprocessing:
                        - type: MULTIPLIER
                          parameters:
                            - '0.01'
                      description: 'Temperaturwert des Sensors {#DEVICEALIAS}'
                      tags:
                        - tag: component
                          value: temperature
                  master_item:
                    key: system.variable.names.walk
                  preprocessing:
                    - type: SNMP_WALK_TO_JSON
                      parameters:
                        - '{#VAR.NAME}'
                        - 1.3.6.1.4.1.2606.7.4.2.2.1.3
                        - '0'
                        - '{#SNMPINDEX}'
                        - index
                        - '0'
                        - '{#PHYSINDEX}'
                        - 1.3.6.1.4.1.2606.7.4.2.2.1.15
                        - '0'
                        - '{#DEVICEALIAS}'
                        - 1.3.6.1.4.1.2606.7.4.1.2.1.3
                        - '0'
                  lld_macro_paths:
                    - lld_macro: '{#VAR.NAME}'
                      path: '$.name'
                    - lld_macro: '{#SNMPINDEX}'
                      path: '$.index'
                    - lld_macro: '{#PHYSINDEX}'
                      path: '$.physindex'
                    - lld_macro: '{#DEVICEINDEX}'
                      path: '$.deviceindex'
                    - lld_macro: '{#DEVICEALIAS}'
                      path: '$.devicealias'
              valuemaps:
                - uuid: dc2713ac127b4775a4cbc73c2b2cabd8
                  name: 'General status of device connected to CMCIII PU'
                  mappings:
                    - value: '1'
                      newvalue: 'Device not available'
                    - value: '2'
                      newvalue: OK
                    - value: '3'
                      newvalue: 'Device detected, confirmation required'
                    - value: '4'
                      newvalue: 'Device lost (disconnected), confirmation required'
                    - value: '5'
                      newvalue: 'Device changed'
                    - value: '6'
                      newvalue: Error
                    - value: '7'
                      newvalue: 'Firmware Update pending'
                    - value: '8'
                      newvalue: 'Firmware Update running'

        Comment

        Working...