Commit file change using GIT

Tags: #<Tag:0x00007f522f1e2070>

Hi,

I have added a few sensors to the includes/definitions/discovery/netscaler.yaml file, but have no clue how to commit this to the project. Could someone please assist a newby on this?

mib: NS-ROOT-MIB
modules:
    processors:
          data:
              -
                  oid: nsCPUTable
                  value: nsCPUusage
                  num_oid: '.1.3.6.1.4.1.5951.4.1.1.41.6.1.2."{{ $index }}"'
                  index: nsCPUname
                  descr: nsCPUname
    sensors:
          state:
              data:
                  -
                      oid: haCurStatus
                      num_oid: '.1.3.6.1.4.1.5951.4.1.1.23.23.{{ $index }}'
                      index: 'haCurStatus.{{ $index }}'
                      descr: Configured for HA
                      state_name: haCurStatus
                      states:
                          - { value: 0, generic: 0, graph: 1, descr: no }
                          - { value: 1, generic: 0, graph: 1, descr: yes }
                  -
                      oid: sysHighAvailabilityMode
                      num_oid: '.1.3.6.1.4.1.5951.4.1.1.6.{{ $index }}'
                      index: 'sysHighAvailabilityMode.{{ $index }}'
                      descr: Current HA mode
                      state_name: sysHighAvailabilityMode
                      states:
                          - { value: 0, generic: 0, graph: 1, descr: standalone }
                          - { value: 1, generic: 0, graph: 1, descr: primary }
                          - { value: 2, generic: 0, graph: 1, descr: secondary }
                          - { value: 3, generic: 3, graph: 1, descr: unknown }
                  -
                      oid: haCurState
                      num_oid: '.1.3.6.1.4.1.5951.4.1.1.23.24.{{ $index }}'
                      index: 'haCurState.{{ $index }}'
                      descr: Current HA state
                      state_name: haCurState
                      states:
                          - { value: 0, generic: 3, graph: 1, descr: UNKNOWN }
                          - { value: 1, generic: 1, graph: 1, descr: INIT }
                          - { value: 2, generic: 2, graph: 1, descr: DOWN }
                          - { value: 3, generic: 0, graph: 1, descr: UP }
                          - { value: 4, generic: 2, graph: 1, descr: PARTIALFAIL }
                          - { value: 5, generic: 2, graph: 1, descr: MONITORFAIL }
                          - { value: 6, generic: 0, graph: 1, descr: MONITOROK }
                          - { value: 7, generic: 2, graph: 1, descr: COMPLETEFAIL }
                          - { value: 8, generic: 1, graph: 1, descr: DUMB }
                          - { value: 9, generic: 1, graph: 1, descr: DISABLED }
                          - { value: 10, generic: 2, graph: 1, descr: PARTIALFAILSSL }
                          - { value: 11, generic: 2, graph: 1, descr: ROUTEMONITORFAIL }
                  -
                      oid: haPeerState
                      num_oid: '.1.3.6.1.4.1.5951.4.1.1.23.3.{{ $index }}'
                      index: 'haPeerState.{{ $index }}'
                      descr: Peer HA mode
                      state_name: haPeerState
                      states:
                          - { value: 0, generic: 3, graph: 1, descr: standalone }
                          - { value: 1, generic: 0, graph: 1, descr: primary }
                          - { value: 2, generic: 0, graph: 1, descr: secondary }
                          - { value: 3, generic: 3, graph: 1, descr: unknown }
          count:
              data:
                  -
                      oid: sslTotTransactionsRate
                      value: sslTotTransactionsRate
                      num_oid: '.1.3.6.1.4.1.5951.4.1.1.47.333.{{ $index }}'
                      index: 'sslTotTransactionsRate.{{ $index }}'
                      descr: SSL Total Transactions Rate
                      state_name: sslTotTransactionsRate
                  -
                      oid: httpTotRequestsRate
                      value: httpTotRequestsRate
                      num_oid: '.1.3.6.1.4.1.5951.4.1.1.48.76.{{ $index }}'
                      index: 'httpTotRequestsRate.{{ $index }}'
                      descr: HTTP Total Requests Rate
                      state_name: httpTotRequestsRate
                  -
                      oid: tcpCurClientConnEstablished
                      value: tcpCurClientConnEstablished
                      num_oid: '.1.3.6.1.4.1.5951.4.1.1.46.12.{{ $index }}'
                      index: 'tcpCurClientConnEstablished.{{ $index }}'
                      descr: Current TCP Client Connections Established
                      state_name: tcpCurClientConnEstablished
                  -
                      oid: tcpCurServerConnEstablished
                      value: tcpCurServerConnEstablished
                      num_oid: '.1.3.6.1.4.1.5951.4.1.1.46.10.{{ $index }}'
                      index: 'tcpCurServerConnEstablished.{{ $index }}'
                      descr: Current TCP Server Connections Established
                      state_name: tcpCurServerConnEstablished

Regards,
Marcelo

Hi,

Please check https://docs.librenms.org/Developing/Using-Git/

Hi doc,

I don’t have access to github.com from the server, so I forked the repository and made the changes on Github directly, then committed it.

Regards,
Marcelo