ipmi_sensor

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2017 License: MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Telegraf ipmi plugin

Get bare metal metrics using the command line utility ipmitool

see ipmitool(https://sourceforge.net/projects/ipmitool/files/ipmitool/)

The plugin will use the following command to collect remote host sensor stats:

ipmitool -I lan -H 192.168.1.1 -U USERID -P PASSW0RD sdr

Measurements

  • ipmi_sensor:

    • Tags: name, server, unit
    • Fields:
      • status
      • value

Configuration

[[inputs.ipmi_sensor]]
  ## specify servers via a url matching:
  ##  [username[:password]@][protocol[(address)]]
  ##  e.g.
  ##    root:passwd@lan(127.0.0.1)
  ##
  servers = ["USERID:PASSW0RD@lan(10.20.2.203)"]

Output

> ipmi_sensor,server=10.20.2.203,unit=degrees_c,name=ambient_temp status=1i,value=20 1458488465012559455
> ipmi_sensor,server=10.20.2.203,unit=feet,name=altitude status=1i,value=80 1458488465012688613
> ipmi_sensor,server=10.20.2.203,unit=watts,name=avg_power status=1i,value=220 1458488465012776511
> ipmi_sensor,server=10.20.2.203,unit=volts,name=planar_3.3v status=1i,value=3.28 1458488465012861875
> ipmi_sensor,server=10.20.2.203,unit=volts,name=planar_vbat status=1i,value=3.04 1458488465013072508
> ipmi_sensor,server=10.20.2.203,unit=rpm,name=fan_1a_tach status=1i,value=2610 1458488465013137932
> ipmi_sensor,server=10.20.2.203,unit=rpm,name=fan_1b_tach status=1i,value=1775 1458488465013279896

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Atofloat

func Atofloat(val string) float64

Types

type CommandRunner

type CommandRunner struct{}

func (CommandRunner) Run

func (t CommandRunner) Run(conn *Connection, args ...string) (string, error)

type Connection

type Connection struct {
	Hostname  string
	Username  string
	Password  string
	Path      string
	Port      int
	Interface string
}

Connection properties for a Client

func NewConnection

func NewConnection(server string) *Connection

func (*Connection) LocalIP

func (c *Connection) LocalIP() string

LocalIP returns the local (client) IP address of the Connection

func (*Connection) RemoteIP

func (c *Connection) RemoteIP() string

RemoteIP returns the remote (bmc) IP address of the Connection

type Ipmi

type Ipmi struct {
	Servers []string
	// contains filtered or unexported fields
}

func NewIpmi

func NewIpmi() *Ipmi

func (*Ipmi) Description

func (m *Ipmi) Description() string

func (*Ipmi) Gather

func (m *Ipmi) Gather(acc telegraf.Accumulator) error

func (*Ipmi) SampleConfig

func (m *Ipmi) SampleConfig() string

type Runner

type Runner interface {
	Run(conn *Connection, args ...string) (string, error)
}

Jump to

Keyboard shortcuts

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