provider

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GRAPH_AXIS_LOOKUP = map[string]zabbix.GraphAxis{
	"calculated": zabbix.GraphAxisCalculated,
	"fixed":      zabbix.GraphAxisFixed,
	"item":       zabbix.GraphAxisItem,
}
View Source
var GRAPH_AXIS_LOOKUP_ARR = []string{}
View Source
var GRAPH_AXIS_LOOKUP_REV = map[zabbix.GraphAxis]string{}
View Source
var GRAPH_DRAW_LOOKUP = map[string]zabbix.GraphItemDraw{
	"line":     zabbix.GraphItemLine,
	"filled":   zabbix.GraphItemFilled,
	"bold":     zabbix.GraphItemBold,
	"dot":      zabbix.GraphItemDot,
	"dashed":   zabbix.GraphItemDashed,
	"gradient": zabbix.GraphItemGradient,
}
View Source
var GRAPH_DRAW_LOOKUP_ARR = []string{}
View Source
var GRAPH_DRAW_LOOKUP_REV = map[zabbix.GraphItemDraw]string{}
View Source
var GRAPH_FUNC_LOOKUP = map[string]zabbix.GraphItemFunc{
	"min":     zabbix.GraphItemMin,
	"average": zabbix.GraphItemAvg,
	"max":     zabbix.GraphItemMax,
	"all":     zabbix.GraphItemAll,
	"last":    zabbix.GraphItemLast,
}
View Source
var GRAPH_FUNC_LOOKUP_ARR = []string{}
View Source
var GRAPH_FUNC_LOOKUP_REV = map[zabbix.GraphItemFunc]string{}
View Source
var GRAPH_ITYPE_LOOKUP = map[string]zabbix.GraphItemType{
	"simple": zabbix.GraphItemSimple,
	"sum":    zabbix.GraphItemSum,
}
View Source
var GRAPH_ITYPE_LOOKUP_ARR = []string{}
View Source
var GRAPH_ITYPE_LOOKUP_REV = map[zabbix.GraphItemType]string{}
View Source
var GRAPH_SIDE_LOOKUP = map[string]zabbix.GraphItemSide{
	"left":  zabbix.GraphItemLeft,
	"right": zabbix.GraphItemRight,
}
View Source
var GRAPH_SIDE_LOOKUP_ARR = []string{}
View Source
var GRAPH_SIDE_LOOKUP_REV = map[zabbix.GraphItemSide]string{}
View Source
var GRAPH_TYPE_LOOKUP = map[string]zabbix.GraphType{
	"normal":   zabbix.GraphNormal,
	"stacked":  zabbix.GraphStacked,
	"pie":      zabbix.GraphPie,
	"exploded": zabbix.GraphExploded,
}
View Source
var GRAPH_TYPE_LOOKUP_ARR = []string{}
View Source
var GRAPH_TYPE_LOOKUP_REV = map[zabbix.GraphType]string{}
View Source
var HINV_LOOKUP = map[string]zabbix.InventoryMode{
	"disabled":  zabbix.InventoryDisabled,
	"manual":    zabbix.InventoryManual,
	"automatic": zabbix.InventoryAutomatic,
}
View Source
var HINV_LOOKUP_ARR = []string{}
View Source
var HINV_LOOKUP_REV = map[zabbix.InventoryMode]string{}
View Source
var HOST_IFACE_PORTS = map[string]int{
	"agent": 10050,
	"snmp":  161,
	"ipmi":  623,
	"jmx":   8686,
}
View Source
var HOST_IFACE_TYPES = map[string]zabbix.InterfaceType{
	"agent": zabbix.Agent,
	"snmp":  zabbix.SNMP,
	"ipmi":  zabbix.IPMI,
	"jmx":   zabbix.JMX,
}

interface type conversions

View Source
var HOST_IFACE_TYPES_REV = map[zabbix.InterfaceType]string{
	zabbix.Agent: "agent",
	zabbix.SNMP:  "snmp",
	zabbix.IPMI:  "ipmi",
	zabbix.JMX:   "jmx",
}
View Source
var HSNMP_AUTHPROTO = map[string]string{
	"md5": "0",
	"sha": "1",
}
View Source
var HSNMP_AUTHPROTO_ARR = []string{}
View Source
var HSNMP_AUTHPROTO_REV = map[string]string{}
View Source
var HSNMP_LOOKUP = map[string]zabbix.ItemType{
	"1": zabbix.SNMPv1Agent,
	"2": zabbix.SNMPv2Agent,
	"3": zabbix.SNMPv3Agent,
}
View Source
var HSNMP_LOOKUP_ARR = []string{}
View Source
var HSNMP_LOOKUP_REV = map[zabbix.ItemType]string{}
View Source
var HSNMP_PRIVPROTO = map[string]string{
	"des": "0",
	"aes": "1",
}
View Source
var HSNMP_PRIVPROTO_ARR = []string{}
View Source
var HSNMP_PRIVPROTO_REV = map[string]string{}
View Source
var HSNMP_SECLEVEL = map[string]string{
	"noauthnopriv": "0",
	"authnopriv":   "1",
	"authpriv":     "2",
}
View Source
var HSNMP_SECLEVEL_ARR = []string{}
View Source
var HSNMP_SECLEVEL_REV = map[string]string{}
View Source
var HTTP_AUTHTYPE = map[string]string{
	"none":     "0",
	"basic":    "1",
	"ntlm":     "2",
	"kerberos": "3",
}
View Source
var HTTP_AUTHTYPE_ARR = []string{}
View Source
var HTTP_AUTHTYPE_REV = map[string]string{}
View Source
var HTTP_METHODS = map[string]string{
	"get":  "0",
	"post": "1",
	"put":  "2",
	"head": "3",
}
View Source
var HTTP_METHODS_ARR = []string{}
View Source
var HTTP_METHODS_REV = map[string]string{}
View Source
var HTTP_POSTTYPE = map[string]string{
	"raw":  "0",
	"json": "2",
	"xml":  "3",
}
View Source
var HTTP_POSTTYPE_ARR = []string{}
View Source
var HTTP_POSTTYPE_REV = map[string]string{}
View Source
var HTTP_RETRIEVEMODE = map[string]string{
	"body":    "0",
	"headers": "1",
	"both":    "2",
}
View Source
var HTTP_RETRIEVEMODE_ARR = []string{}
View Source
var HTTP_RETRIEVEMODE_REV = map[string]string{}
View Source
var INVENTORY_KEYS = []string{
	"alias",
	"asset_tag",
	"chassis",
	"contact",
	"contract_number",
	"date_hw_decomm",
	"date_hw_expiry",
	"date_hw_install",
	"date_hw_purchase",
	"deployment_status",
	"hardware",
	"hardware_full",
	"host_netmask",
	"host_networks",
	"host_router",
	"hw_arch",
	"installer_name",
	"location",
	"location_lat",
	"location_lon",
	"macaddress_a",
	"macaddress_b",
	"model",
	"name",
	"notes",
	"oob_ip",
	"oob_netmask",
	"oob_router",
	"os",
	"os_full",
	"os_short",
	"poc_1_cell",
	"poc_1_email",
	"poc_1_name",
	"poc_1_notes",
	"poc_1_phone_a",
	"poc_1_phone_b",
	"poc_1_screen",
	"poc_2_cell",
	"poc_2_email",
	"poc_2_name",
	"poc_2_notes",
	"poc_2_phone_a",
	"poc_2_phone_b",
	"poc_2_screen",
	"serialno_a",
	"serialno_b",
	"site_address_a",
	"site_address_b",
	"site_address_c",
	"site_city",
	"site_country",
	"site_notes",
	"site_rack",
	"site_state",
	"site_zip",
	"software",
	"software_app_a",
	"software_app_b",
	"software_app_c",
	"software_app_d",
	"software_app_e",
	"software_full",
	"tag",
	"type",
	"type_full",
	"url_a",
	"url_b",
	"url_c",
	"vendor",
}
View Source
var ITEM_VALUE_TYPES = map[string]zabbix.ValueType{
	"float":     zabbix.Float,
	"character": zabbix.Character,
	"log":       zabbix.Log,
	"unsigned":  zabbix.Unsigned,
	"text":      zabbix.Text,
}

Item Type Conversion and lookup tables

View Source
var ITEM_VALUE_TYPES_ARR = []string{
	"float",
	"character",
	"log",
	"unsigned",
	"text",
}
View Source
var ITEM_VALUE_TYPES_REV = map[zabbix.ValueType]string{
	zabbix.Float:     "float",
	zabbix.Character: "character",
	zabbix.Log:       "log",
	zabbix.Unsigned:  "unsigned",
	zabbix.Text:      "text",
}
View Source
var LLD_EVALTYPE = map[string]zabbix.LLDEvalType{
	"andor":  zabbix.LLDAndOr,
	"and":    zabbix.LLDAnd,
	"or":     zabbix.LLDOr,
	"custom": zabbix.LLDCustom,
}

eval type

View Source
var LLD_EVALTYPE_ARR = []string{}
View Source
var LLD_EVALTYPE_REV = map[zabbix.LLDEvalType]string{}
View Source
var LLD_OPERATOR = map[string]zabbix.LLDOperatorType{
	"match":    zabbix.LLDMatch,
	"notmatch": zabbix.LLDNotMatch,
}

operator

View Source
var LLD_OPERATOR_ARR = []string{}
View Source
var LLD_OPERATOR_REV = map[zabbix.LLDOperatorType]string{}
View Source
var SNMP_AUTHPROTO = map[string]string{
	"md5": "0",
	"sha": "1",
}
View Source
var SNMP_AUTHPROTO_ARR = []string{}
View Source
var SNMP_AUTHPROTO_REV = map[string]string{}
View Source
var SNMP_LOOKUP = map[string]zabbix.ItemType{
	"1": zabbix.SNMPv1Agent,
	"2": zabbix.SNMPv2Agent,
	"3": zabbix.SNMPv3Agent,
}
View Source
var SNMP_LOOKUP_ARR = []string{}
View Source
var SNMP_LOOKUP_REV = map[zabbix.ItemType]string{}
View Source
var SNMP_PRIVPROTO = map[string]string{
	"des": "0",
	"aes": "1",
}
View Source
var SNMP_PRIVPROTO_ARR = []string{}
View Source
var SNMP_PRIVPROTO_REV = map[string]string{}
View Source
var SNMP_SECLEVEL = map[string]string{
	"noauthnopriv": "0",
	"authnopriv":   "1",
	"authpriv":     "2",
}
View Source
var SNMP_SECLEVEL_ARR = []string{}
View Source
var SNMP_SECLEVEL_REV = map[string]string{}
View Source
var TRIGGER_PRIORITY = map[string]zabbix.SeverityType{
	"not_classified": zabbix.NotClassified,
	"info":           zabbix.Information,
	"warn":           zabbix.Warning,
	"average":        zabbix.Average,
	"high":           zabbix.High,
	"disaster":       zabbix.Critical,
}
View Source
var TRIGGER_PRIORITY_ARR = []string{}
View Source
var TRIGGER_PRIORITY_REV = map[zabbix.SeverityType]string{}

Functions

func ApplicationRead

func ApplicationRead(d *schema.ResourceData, m interface{}, params zabbix.Params) error

ApplicationRead terraform Application read function

func Provider

func Provider() *schema.Provider

Provider definition

Types

type ItemHandler

type ItemHandler func(*schema.ResourceData, interface{}, *zabbix.Item)

Function signature for context manipulation

type LLDHandler

type LLDHandler func(*schema.ResourceData, interface{}, *zabbix.LLDRule)

Function signature for context manipulation

type Log

type Log struct{}

func (Log) Debug

func (Log) Debug(msg string, args ...interface{})

func (Log) Error

func (Log) Error(msg string, args ...interface{})

func (Log) Info

func (Log) Info(msg string, args ...interface{})

func (Log) Trace

func (Log) Trace(msg string, args ...interface{})

func (Log) Warn

func (Log) Warn(msg string, args ...interface{})

Jump to

Keyboard shortcuts

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