general

package
v0.0.0-...-0e7caef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package general represents generic information that can be requested via SNMP

Index

Constants

View Source
const SystemDateOID = ".1.3.6.1.2.1.25.1.2.0"

RFC2790 defines HOST-RESOURCES-MIB::hrSystemDate.0

View Source
const SystemProcessesOID = ".1.3.6.1.2.1.25.1.6.0"

RFC2790 defines HOST-RESOURCES-MIB::hrSystemProcesses.0

View Source
const SystemUptimeOID = ".1.3.6.1.2.1.1.3.0"

RFC3418 defines SNMPv2-MIB::sysUpTime

Variables

View Source
var NTPServer = "time1.uni-hannover.de"

The preferred NTP Server for calculating the differences in clock times

Functions

func Handler

func Handler(g *gosnmp.GoSNMP, unit string)

func SnmpTimeString

func SnmpTimeString(c []byte) string

SnmpTimeString parses SNMP Data into a RFC3339 compatible timestamp

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL