Skip to content

OCP-on-NERC/nerc-snmp-exporter-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NERC SNMP Exporter Configuration

This repository contains:

  1. A generator.yml for input into the snmp-exporter config generator.
  2. A Containerfile that builds an image with the generator and all the required MIBs.

Generating the Configuration

Run the config generator image, bind mounting the directory containing generator.yml to /config:

podman run --rm -v "$PWD:/config" -w /config ghcr.io/ocp-on-nerc/snmp-config-generator:latest \
  generate -m /mibs

If you are running on a system using SELinux, add :z to the bind mount:

podman run --rm -v "$PWD:/config:z" -w /config ghcr.io/ocp-on-nerc/snmp-config-generator:latest \
  generate -m /mibs

This will produce snmp.yml in the current directory.

Building the container image

The config-generator directory contains the components of the container image.

The config-generator/mibs directory contains the MIBs that are embedded in the image. The contents of this directory are built from a collection of upstream sources; the file config-generator/miblist.txt defines the sources of these MIBs.

After modifying miblist.txt, run the build-mibs-db.sh script to refresh the mibs directory.

About

Configuration for snmp-exporter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages