Documentation
¶
Index ¶
- type InterfaceInfo
- type Poller
- func (p *Poller) GetLatestSNMPResult(host string, db *storage.Database) (*SNMPResult, error)
- func (p *Poller) GetSNMPDevices(db *storage.Database) ([]string, error)
- func (p *Poller) PollHost(host string) (*SNMPResult, error)
- func (p *Poller) PollHosts(ctx context.Context, hosts []string, db *storage.Database)
- type SNMPResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InterfaceInfo ¶
type InterfaceInfo struct {
Index int
Name string
Description string
Type string
Speed uint64
AdminStatus int
OperStatus int
InOctets uint64
OutOctets uint64
}
InterfaceInfo contains information about a network interface
type Poller ¶
type Poller struct {
// contains filtered or unexported fields
}
Poller handles SNMP polling of devices
func (*Poller) GetLatestSNMPResult ¶
GetLatestSNMPResult retrieves the latest SNMP result for a specific host
func (*Poller) GetSNMPDevices ¶
GetSNMPDevices retrieves a list of all SNMP devices from the database
Click to show internal directories.
Click to hide internal directories.