mib: companyMIB
modules:
    os:
        hardware: companyMIB::upsIdModelName.0
        serial: companyMIB::upsIdSerialNumber.0
        version: companyMIB::upsIdFWVersion.0
    sensors:
        state:
            data:
                -
                    oid: upsIdUPSType
                    num_oid: '.1.3.6.1.4.1.21111.1.1.1.7.{{ $index }}'
                    descr: 'UPS Type'
                    state_name: upsIdUPSType
                    states:
                        - { descr: 'standby', graph: 1, value: 0, generic: 0 }
                        - { descr: 'line-interactive', graph: 1, value: 1, generic: 1 }
                        - { descr: 'on-line', graph: 1, value: 2, generic: 0 }
        count:
            data:
                -
                    oid: upsBatNumberInSeries
                    num_oid: '.1.3.6.1.4.1.21111.1.1.3.14.{{ $index }}'
                    descr: 'Nb. of Batteries in Series'
                    group: Battery
                    index: 'series-{{ $index }}'

                -
                    oid: upsBatNumberInParallel
                    num_oid: '.1.3.6.1.4.1.21111.1.1.3.15.{{ $index }}'
                    descr: 'Nb. of Batteries in Parallel'
                    group: Battery
                    index: 'parallel-{{ $index }}'
