OpenBSD Handbook

    Theme
    • Part I. Install & Configure
      • Introduction to OpenBSD
      • Installing OpenBSD
      • The X Window System
      • Networking on OpenBSD
      • System Configuration
      • OpenBSD Basics
      • Managing Software: Packages and Ports
    • Part II. Daily Operations
      • OpenBSD Desktop Environments
      • Multimedia
      • Printing
      • Linux Compatibility
      • Windows Compatibility
      • Games
    • Part III. System Administration
      • Virtualization
      • Storage and File Systems
      • Updating and Upgrading
      • Localization
      • The OpenBSD Boot Process
      • Security
    • Part IV. Networking & Daemons
      • Services
        • Database
          • MariaDB
          • PostgreSQL
          • Redis
          • memcached
        • Directory
          • YP (NIS)
          • LDAP
        • File
          • NFS
          • Samba
        • FTP Services
          • ftpd
          • ProFTPD
          • vsftpd
          • Pure-FTPd
          • TFTP
        • Mail
          • OpenSMTPD Mail Server
          • Dovecot IMAP and POP3 Server
          • Postfix
          • Exim
          • Rspamd
        • Name
          • Unbound DNS Resolver
          • NSD Authoritative DNS Server
          • BIND DNS Server
        • Networking
          • OpenBGPD
          • rad
          • DHCP on OpenBSD
          • slaacd
        • Web
          • Apache HTTP Server
          • nginx Web Server
          • OpenBSD httpd Web Server
          • relayd Reverse Proxy
        • Logging
          • syslogd
        • Monitoring
          • SNMP
        • Remote Access
          • Audit OpenSSH
          • OpenSSH Server
        • File Synchronization
          • rsync
        • Messaging
          • RabbitMQ Message Broker
        • Time
          • NTP Time Synchronization
      • PF
        • pfctl cheat sheet
        • PF Anchors
        • PF Filter Rules
        • PF Forwarding
        • PF Lists and Macros
        • PF Load Balancing
        • PF Logging
        • PF NAT
        • PF Options
        • PF Policies
        • PF Shortcuts
        • PF Tables
      • Advanced Networking
        • High Availability and State Replication
        • Multi-WAN and Policy-Based Routing
        • VPN and Cryptographic Tunneling
        • Classic and Lightweight Tunnels
        • IPv6 at Scale
        • QoS and Traffic Shaping
        • MPLS and Label Distribution
        • Network Services at Scale
        • Virtualization and Host Networking
        • Large-Scale L2 and L3 Design
        • Telemetry, Logging, and Flow Export
        • Hardening and Operational Safety
        • Reference Architectures
        • Troubleshooting Playbooks
      • Serial Communication
    • Part V. Miscellaneous
      • Virtualization Cheat Sheet
      • OpenBSD Cheatsheet
      • How-to Guides
        • Complete the First 30 Minutes After Installation
        • Check Hardware Compatibility Before Installing
        • Bootstrap Wi-Fi Firmware Without Ethernet
        • Set Up OpenBSD as a Laptop or Workstation
        • Configure Laptop Power Management
        • Run OpenBSD as a Virtual Machine Guest
        • Install OpenBSD on a VPS or Cloud Server
        • Install OpenBSD with Full-Disk Encryption
        • Troubleshoot Web Browsers on OpenBSD
        • Create an Administrator Account with doas and SSH Keys
        • Establish a Conservative Security Baseline
        • Manage OpenBSD with Ansible
        • Recover Access and Reset the Root Password
        • Collect OpenBSD Diagnostic Evidence
        • Configure Secure Remote Access with OpenSSH
        • Set Up WordPress on OpenBSD
        • Build Third-Party Software from Ports
        • Use FIDO Security Keys with OpenSSH
        • Build OpenBSD from Source
        • Configure Wi-Fi Roaming and Wired Failover
        • Dual-Boot OpenBSD on a UEFI System
        • Troubleshoot PF, NAT, and Routing
        • Automate OpenBSD Installation with Autoinstall and PXE
        • Route Multiple VLANs with PF
        • Configure a Road-Warrior WireGuard VPN
        • Troubleshoot Package Installation and Update Failures
        • Route IPv6 Networks without NAT
        • Schedule Recurring Maintenance
        • Plan a Docker Workload Migration to OpenBSD
        • Build a Mail Server with OpenSMTPD, Dovecot, and Rspamd
        • Build a Simple Router and Firewall
        • Monitor an OpenBSD System
        • Back Up and Restore an OpenBSD System
        • Configure softraid RAID1
        • Recover an OpenBSD System That Does Not Boot
        • Install Z shell (zsh)
      • OpenBSD for Linux Users
      • OpenBSD for FreeBSD Users
      • OpenBSD for macOS Users
    • OpenBSD FAQ
    • OpenBSD Architectures
      • OpenBSD Package Search

        snmp_exporter-0.30.1

        Package search / Categories / OpenBSD 8.0 release
        โ† Back to search
        OpenBSD branch
        OpenBSD 8.0 releaseCurrent snapshot

        OpenBSD 8.0 release ยท amd64

        Prometheus exporter for SNMP metrics

        Project homepage: https://prometheus.io/

        Description

        Prometheus exporter for metrics gathered from SNMP. This package contains both the exporter that does the actual scraping, and a generator (which depends on Net-SNMP) that creates the configuration for use by the exporter.

        Package information

        Ports path
        sysutils/snmp_exporter
        Package architecture
        amd64
        Maintainer
        Stuart Henderson <stu.ports@spacehopper.org>
        Categories
        sysutils, lang/go
        Available flavors
        None listed
        Only for architectures
        aarch64, amd64, arm, i386, riscv64

        Ports list build and test dependencies as well as runtime dependencies. pkg_add selects those needed for installation.

        Direct dependencies

        Library

        • net/net-snmp

        Build

        • lang/go
        • archivers/unzip
        • archivers/xz STEM->=5.4.0

        Test

        • sysutils/snmp_exporter snmp_exporter-0.30.1
        OpenBSD README

        This README contains unresolved ports variables; replace them before using its commands.

        +-------------------------------------------------------------------------------
        | Running snmp_exporter on OpenBSD
        +-------------------------------------------------------------------------------
        
        snmp_exporter runs as a daemon and performs SNMP queries in response to
        incoming requests on its HTTP port. It would normally be queried by Prometheus
        which passes parameters specifying which host it should poll and which mib to
        use.
        
        snmp_exporter's own configuration provides definitions for mibs with
        OID-to-name mappings, and can include SNMP authentication information.
        The "runtime" configuration in ${SYSCONFDIR}/snmp_exporter/snmp.yml is intended
        to be generated by a tool (name "snmp_generator" in this package) from
        a higher-level configuration file ${SYSCONFDIR}/snmp_exporter/generator.yml.
        The generator uses this in conjunction with MIB files (read in via Net-SNMP) 
        to produce snmp.yml.
        
        The default configuration can be used directly for some simple uses (for
        example, polling interface stats with default authentication values).
        For more complex cases and less-common MIBs you will need to adapt or
        write your own generator.yml and generate a new snmp.yml from it.
        
        The MIB files required for snmp_exporter's sample configuration are included
        in this package (in ${TRUEPREFIX}/share/examples/snmp_exporter/mibs).
        
        Additional MIBs may be needed if you're adding less common devices;
        the LibreNMS package provides a collection of thousands of these covering
        many network devices in /var/www/librenms/mibs.
        
        Some OpenBSD-specific MIBs for use with snmpd(8) are provided in
        /usr/share/snmp/mibs.
        
        You will need to provide a suitable MIB search path allowing the generator
        to find any MIB files referenced in your configuration; this can be set
        in the environment variable MIBDIRS.
        
        An example of adapting and building config:
        
        # cd ${SYSCONFDIR}/snmp_exporter
        # cp ${TRUEPREFIX}/share/examples/snmp_exporter/generator-pf.yml generator.yml
        # vi ${SYSCONFDIR}/snmp_exporter/generator.yml
        [...]
        # export MIBDIRS=/usr/share/snmp/mibs:${LOCALBASE}/share/snmp/mibs:${TRUEPREFIX}/share/examples/snmp_exporter/mibs
        # snmp_generator generate
        
        Upgrading from before v0.23.0
        -----------------------------
        
        You will need to update configuration. New versions will not run with
        old configuration.
        
        In older versions, configuration used a single list of modules, which
        incorporated authorisation settings (SNMP version, community/username,
        SNMPv3 auth options) alongside the metric walking/mapping settings.
        
        These have now been split. Authorisation settings ("version" and any
        "auth" sections) should be removed from the various module sections in
        generator.yml and added to a new "auths" section (see the example in
        ${LOCALBASE}/share/examples/snmp_exporter/generator.yml).
        
        You will then need to regenerate snmp.yml with "snmp_generator" as
        shown above.
        
        Rather than referencing authorisation settings in module config,
        you now specify the auth section name as a URL query parameter
        when fetching results,, alongside the module and target, e.g.:
        
        http://localhost:9116/snmp?auth=public_v2&module=if_mib&target=192.0.2.8
        
        See ${TRUEPREFIX}/share/doc/snmp_exporter/auth-split-migration.md for
        upstream documentation about this.
        
        Used by (1 dependency relationships)

        Includes library, runtime, build and test dependencies.

        Package guides

        • Installing and updating packages
        • OpenBSD SNMP monitoring
        • Monitor an OpenBSD system

        Package details as JSON

        Report a bug