Documentation
¶
Overview ¶
Package datastore : データ保存
Package datastore : データ保存
Package datastore : データ保存
Index ¶
- Constants
- Variables
- func AddBlueDevice(e *BlueDeviceEnt)
- func AddCert(c *CertEnt)
- func AddDNSQ(s *DNSQEnt)
- func AddDevice(d *DeviceEnt)
- func AddDrawItem(di *DrawItemEnt) error
- func AddEnvMonitor(e *EnvMonitorEnt)
- func AddEtherType(s *EtherTypeEnt)
- func AddEventLog(e *EventLogEnt)
- func AddFlow(f *FlowEnt)
- func AddIPReport(ip *IPReportEnt)
- func AddLine(l *LineEnt) error
- func AddMotionSensor(e *MotionSensorEnt)
- func AddNode(n *NodeEnt) error
- func AddOrUpdateIcon(i *IconEnt) error
- func AddPolling(p *PollingEnt) error
- func AddPollingLog(p *PollingEnt) error
- func AddPowerMonitor(e *PowerMonitorEnt)
- func AddRADIUSFlow(f *RADIUSFlowEnt)
- func AddSdrPower(list []*SdrPowerEnt)
- func AddSensor(s *SensorEnt)
- func AddServer(s *ServerEnt)
- func AddTLSFlow(f *TLSFlowEnt)
- func AddUser(u *UserEnt)
- func AddWifiAP(e *WifiAPEnt)
- func AddWinAccount(e *WinAccountEnt)
- func AddWinEventID(e *WinEventIDEnt)
- func AddWinKerberos(e *WinKerberosEnt)
- func AddWinLogon(e *WinLogonEnt)
- func AddWinPrivilege(e *WinPrivilegeEnt)
- func AddWinProcess(e *WinProcessEnt)
- func AddWinTask(e *WinTaskEnt)
- func CheckDBBackup()
- func CheckNodeAddress(ip, mac, oldmac string)
- func ClearPollingLog(pollingID string) error
- func ClearReport(r string) error
- func CloseDB()
- func CompactDB(ds, compact string) error
- func DeleteAIResult(id string) error
- func DeleteAllLogs()
- func DeleteArp()
- func DeleteDrawItem(id string) error
- func DeleteGeoIP()
- func DeleteGrokEnt(id string) error
- func DeleteIcon(icon string) error
- func DeleteLine(lineID string) error
- func DeleteNode(nodeID string) error
- func DeleteNodeStateChanged(id string)
- func DeleteOldSdrPower(delOld int64) error
- func DeletePollings(ids []string) error
- func DeleteReport(report string, ids []string) error
- func DeleteSdrPower(st int64, h string) error
- func DeleteUser(id string)
- func DelteImage(path string) error
- func FindVendor(mac string) string
- func ForEachArp(f func(*ArpEnt) bool) error
- func ForEachBludeDevice(f func(*BlueDeviceEnt) bool)
- func ForEachCerts(f func(*CertEnt) bool)
- func ForEachDNSQ(f func(*DNSQEnt) bool)
- func ForEachDevices(f func(*DeviceEnt) bool)
- func ForEachEnvMonitor(f func(*EnvMonitorEnt) bool)
- func ForEachEtherType(f func(*EtherTypeEnt) bool)
- func ForEachEventLog(st, et int64, f func(*EventLogEnt) bool) error
- func ForEachFlows(f func(*FlowEnt) bool)
- func ForEachGrokEnt(f func(*GrokEnt) bool)
- func ForEachIPReport(f func(*IPReportEnt) bool)
- func ForEachItems(f func(*DrawItemEnt) bool)
- func ForEachLastEventLog(last int64, f func(*EventLogEnt) bool) error
- func ForEachLines(f func(*LineEnt) bool)
- func ForEachLog(st, et int64, t string, f func(*LogEnt) bool) error
- func ForEachMotionSensor(f func(*MotionSensorEnt) bool)
- func ForEachNodes(f func(*NodeEnt) bool)
- func ForEachPollingLog(st, et int64, pollingID string, f func(*PollingLogEnt) bool) error
- func ForEachPollingTemplate(f func(*PollingTemplateEnt) bool)
- func ForEachPollings(f func(*PollingEnt) bool)
- func ForEachPowerMonitor(f func(*PowerMonitorEnt) bool)
- func ForEachRADIUSFlows(f func(*RADIUSFlowEnt) bool)
- func ForEachSdrPower(st int64, h string, f func(*SdrPowerEnt) bool) error
- func ForEachSensors(f func(*SensorEnt) bool)
- func ForEachServers(f func(*ServerEnt) bool)
- func ForEachStateChangedNodes(f func(string) bool)
- func ForEachTLSFlows(f func(*TLSFlowEnt) bool)
- func ForEachUsers(f func(*UserEnt) bool)
- func ForEachWifiAP(f func(*WifiAPEnt) bool)
- func ForEachWinAccount(f func(*WinAccountEnt) bool)
- func ForEachWinEventID(f func(*WinEventIDEnt) bool)
- func ForEachWinKerberos(f func(*WinKerberosEnt) bool)
- func ForEachWinLogon(f func(*WinLogonEnt) bool)
- func ForEachWinPrivilege(f func(*WinPrivilegeEnt) bool)
- func ForEachWinProcess(f func(*WinProcessEnt) bool)
- func ForEachWinTask(f func(*WinTaskEnt) bool)
- func GetBackImage() ([]byte, error)
- func GetCipherSuiteName(id string) (string, bool)
- func GetDataStorePath() string
- func GetImage(path string) ([]byte, error)
- func GetImageList() []string
- func GetLoc(sip string) string
- func GetPrivateKey() string
- func GetServiceName(prot, port int) (string, bool)
- func GetSshdPublicKeys() string
- func Init(ctx context.Context, path string, fs http.FileSystem, wg *sync.WaitGroup) error
- func InitInfluxdb() error
- func InitSecurityKey()
- func IsGlobalUnicast(ips string) bool
- func IsPrivateIP(ip net.IP) bool
- func LoadDefGrokEnt()
- func LoadMailTemplate(t string) string
- func LoadReport() error
- func LoadReportConf() error
- func PrintDateAndTime(i interface{}) string
- func PrintHintedMIBIntVal(val int32, hint string, us bool) string
- func PrintIPAddress(i interface{}) string
- func PrintMIBStringVal(i interface{}) string
- func ResetArpTable() error
- func RestoreDB(ds, backup string) error
- func SaveAIResult(res *AIResult) error
- func SaveBackImage(img []byte) error
- func SaveBackup() error
- func SaveDiscoverConf() error
- func SaveImage(path string, img []byte) error
- func SaveInfluxdbConf() error
- func SaveLogBuffer(logBuffer []*LogEnt)
- func SaveMapConf() error
- func SaveMapData()
- func SaveNotifyConf() error
- func SaveNotifySchedule() error
- func SaveReport(last int64) error
- func SaveReportConf() error
- func SaveSshdPublicKeys(pk string) error
- func SendAIScoreToInfluxdb(pe *PollingEnt, res *AIResult) error
- func SendPollingLogToInfluxdb(pe *PollingEnt) error
- func SetBlueDeviceName(id, name string) bool
- func SetEnvMonitorName(id, name string) bool
- func SetMotionSensorName(id, name string) bool
- func SetNodeStateChanged(id string)
- func SetPowerMonitorName(id, name string) bool
- func StopBackup()
- func UpdateArpEnt(ip, mac string) error
- func UpdateDBStats()
- func UpdateGeoIP(path string) error
- func UpdateGrokEnt(g *GrokEnt) error
- func UpdateLine(l *LineEnt) error
- func UpdatePolling(p *PollingEnt) error
- type AIResult
- type ArpEnt
- type BlueDeviceEnt
- type CertEnt
- type DBBackupEnt
- type DBStatsEnt
- type DBStatsLogEnt
- type DNSQEnt
- type DeviceEnt
- type DiscoverConfEnt
- type DrawItemEnt
- type DrawItemType
- type EnvDataEnt
- type EnvMonitorEnt
- type EtherTypeEnt
- type EventLogEnt
- type FlowEnt
- type GrokEnt
- type IPReportEnt
- type IconEnt
- type InfluxdbConfEnt
- type LineEnt
- type LogEnt
- type LogFilterEnt
- type MIBInfo
- type MIBModuleEnt
- type MIBTreeEnt
- type MIBTypeEnt
- type MapConfEnt
- type MotionSensorDataEnt
- type MotionSensorEnt
- type NodeEnt
- type NotifyConfEnt
- type PollingEnt
- type PollingLogEnt
- type PollingTemplateEnt
- type PowerMonitorDataEnt
- type PowerMonitorEnt
- type RADIUSFlowEnt
- type RSSIEnt
- type ReportConfEnt
- type SdrPowerEnt
- type SdrPowerKey
- type SensorEnt
- type SensorMonitorEnt
- type SensorStatsEnt
- type ServerEnt
- type TLSFlowEnt
- type UserClientEnt
- type UserEnt
- type WifiAPEnt
- type WinAccountEnt
- type WinEventIDEnt
- type WinKerberosEnt
- type WinLogonEnt
- type WinPrivilegeEnt
- type WinProcessEnt
- type WinTaskEnt
Constants ¶
const ( LogModeNone = iota LogModeAlways LogModeOnChange LogModeAI )
const ( DrawItemTypeRect = iota DrawItemTypeEllipse DrawItemTypeText DrawItemTypeImage DrawItemTypePollingText DrawItemTypePollingGauge DrawItemTypePollingNewGauge DrawItemTypePollingBar DrawItemTypePollingLine )
Variables ¶
var ( // Conf Data on Memory MapConf MapConfEnt NotifyConf NotifyConfEnt InfluxdbConf InfluxdbConfEnt DiscoverConf DiscoverConfEnt Backup DBBackupEnt DBStats DBStatsEnt DBStatsLog []DBStatsLogEnt Yasumi string // Restrt snmptrapd RestartSnmpTrapd bool // MIBDB *gomibdb.MIBDB // 拡張バックアップ BackupPath string CopyBackup bool // 通知除外スケジュール設定 NotifySchedule map[string]string )
var ( ErrNoPayload = fmt.Errorf("no payload") ErrInvalidNode = fmt.Errorf("invalid node") ErrInvalidParams = fmt.Errorf("invald params") ErrDBNotOpen = fmt.Errorf("db not open") ErrInvalidID = fmt.Errorf("invalid id") )
Define errors
var MIBInfoMap = make(map[string]*MIBInfo)
var MIBModules = []*MIBModuleEnt{}
var MIBTree = []*MIBTreeEnt{}
var MIBTypeMap = make(map[string]MIBTypeEnt)
Functions ¶
func AddBlueDevice ¶ added in v1.4.0
func AddBlueDevice(e *BlueDeviceEnt)
func AddDrawItem ¶ added in v1.20.0
func AddDrawItem(di *DrawItemEnt) error
func AddEnvMonitor ¶ added in v1.4.0
func AddEnvMonitor(e *EnvMonitorEnt)
func AddEtherType ¶ added in v1.3.0
func AddEtherType(s *EtherTypeEnt)
func AddEventLog ¶
func AddEventLog(e *EventLogEnt)
func AddIPReport ¶ added in v1.1.0
func AddIPReport(ip *IPReportEnt)
func AddMotionSensor ¶ added in v1.35.0
func AddMotionSensor(e *MotionSensorEnt)
func AddOrUpdateIcon ¶ added in v1.8.0
func AddPollingLog ¶
func AddPollingLog(p *PollingEnt) error
func AddPowerMonitor ¶ added in v1.14.0
func AddPowerMonitor(e *PowerMonitorEnt)
func AddRADIUSFlow ¶ added in v1.3.0
func AddRADIUSFlow(f *RADIUSFlowEnt)
func AddSdrPower ¶ added in v1.14.0
func AddSdrPower(list []*SdrPowerEnt)
func AddTLSFlow ¶ added in v1.3.0
func AddTLSFlow(f *TLSFlowEnt)
func AddWinAccount ¶ added in v1.3.0
func AddWinAccount(e *WinAccountEnt)
func AddWinEventID ¶ added in v1.3.0
func AddWinEventID(e *WinEventIDEnt)
func AddWinKerberos ¶ added in v1.3.0
func AddWinKerberos(e *WinKerberosEnt)
func AddWinLogon ¶ added in v1.3.0
func AddWinLogon(e *WinLogonEnt)
func AddWinPrivilege ¶ added in v1.3.0
func AddWinPrivilege(e *WinPrivilegeEnt)
func AddWinProcess ¶ added in v1.3.0
func AddWinProcess(e *WinProcessEnt)
func AddWinTask ¶ added in v1.3.0
func AddWinTask(e *WinTaskEnt)
func CheckDBBackup ¶
func CheckDBBackup()
func CheckNodeAddress ¶ added in v1.3.0
func CheckNodeAddress(ip, mac, oldmac string)
func ClearReport ¶ added in v1.1.0
func DeleteAIResult ¶
func DeleteAllLogs ¶
func DeleteAllLogs()
func DeleteDrawItem ¶ added in v1.20.0
func DeleteGrokEnt ¶
func DeleteIcon ¶ added in v1.8.0
func DeleteLine ¶
func DeleteNode ¶
func DeleteNodeStateChanged ¶
func DeleteNodeStateChanged(id string)
func DeleteOldSdrPower ¶ added in v1.35.0
DeleteOldSdrPower は古い電波強度レポートを削除します。
func DeletePollings ¶ added in v1.15.0
func DeleteReport ¶
func DeleteSdrPower ¶ added in v1.14.0
func DeleteUser ¶
func DeleteUser(id string)
func DelteImage ¶ added in v1.20.0
func ForEachArp ¶
func ForEachBludeDevice ¶ added in v1.4.0
func ForEachBludeDevice(f func(*BlueDeviceEnt) bool)
func ForEachCerts ¶ added in v1.3.0
func ForEachDNSQ ¶ added in v1.3.0
func ForEachDevices ¶
func ForEachEnvMonitor ¶ added in v1.4.0
func ForEachEnvMonitor(f func(*EnvMonitorEnt) bool)
func ForEachEtherType ¶ added in v1.3.0
func ForEachEtherType(f func(*EtherTypeEnt) bool)
func ForEachEventLog ¶
func ForEachEventLog(st, et int64, f func(*EventLogEnt) bool) error
func ForEachFlows ¶
func ForEachGrokEnt ¶
func ForEachIPReport ¶ added in v1.1.0
func ForEachIPReport(f func(*IPReportEnt) bool)
func ForEachItems ¶ added in v1.20.0
func ForEachItems(f func(*DrawItemEnt) bool)
func ForEachLastEventLog ¶
func ForEachLastEventLog(last int64, f func(*EventLogEnt) bool) error
func ForEachMotionSensor ¶ added in v1.35.0
func ForEachMotionSensor(f func(*MotionSensorEnt) bool)
func ForEachNodes ¶
func ForEachPollingLog ¶
func ForEachPollingLog(st, et int64, pollingID string, f func(*PollingLogEnt) bool) error
func ForEachPollingTemplate ¶
func ForEachPollingTemplate(f func(*PollingTemplateEnt) bool)
func ForEachPowerMonitor ¶ added in v1.14.0
func ForEachPowerMonitor(f func(*PowerMonitorEnt) bool)
func ForEachRADIUSFlows ¶ added in v1.3.0
func ForEachRADIUSFlows(f func(*RADIUSFlowEnt) bool)
func ForEachSdrPower ¶ added in v1.14.0
func ForEachSdrPower(st int64, h string, f func(*SdrPowerEnt) bool) error
func ForEachSensors ¶ added in v1.3.0
func ForEachServers ¶
func ForEachTLSFlows ¶ added in v1.3.0
func ForEachTLSFlows(f func(*TLSFlowEnt) bool)
func ForEachUsers ¶
func ForEachWifiAP ¶ added in v1.4.0
func ForEachWinAccount ¶ added in v1.3.0
func ForEachWinAccount(f func(*WinAccountEnt) bool)
func ForEachWinEventID ¶ added in v1.3.0
func ForEachWinEventID(f func(*WinEventIDEnt) bool)
func ForEachWinKerberos ¶ added in v1.3.0
func ForEachWinKerberos(f func(*WinKerberosEnt) bool)
func ForEachWinLogon ¶ added in v1.3.0
func ForEachWinLogon(f func(*WinLogonEnt) bool)
func ForEachWinPrivilege ¶ added in v1.3.0
func ForEachWinPrivilege(f func(*WinPrivilegeEnt) bool)
func ForEachWinProcess ¶ added in v1.3.0
func ForEachWinProcess(f func(*WinProcessEnt) bool)
func ForEachWinTask ¶ added in v1.3.0
func ForEachWinTask(f func(*WinTaskEnt) bool)
func GetBackImage ¶
func GetCipherSuiteName ¶
func GetImageList ¶ added in v1.20.0
func GetImageList() []string
func GetPrivateKey ¶
func GetPrivateKey() string
func GetServiceName ¶
func GetSshdPublicKeys ¶ added in v1.36.0
func GetSshdPublicKeys() string
func InitInfluxdb ¶
func InitInfluxdb() error
func InitSecurityKey ¶ added in v1.22.0
func InitSecurityKey()
func IsGlobalUnicast ¶
func IsPrivateIP ¶
func LoadDefGrokEnt ¶ added in v1.3.0
func LoadDefGrokEnt()
func LoadMailTemplate ¶ added in v1.7.0
func LoadReport ¶
func LoadReport() error
func PrintDateAndTime ¶ added in v1.34.0
func PrintDateAndTime(i interface{}) string
DISPLAY-HINT "2d-1d-1d,1d:1d:1d.1d,1a1d:1d"
func PrintHintedMIBIntVal ¶ added in v1.33.0
func PrintIPAddress ¶ added in v1.34.0
func PrintIPAddress(i interface{}) string
func PrintMIBStringVal ¶ added in v1.34.0
func PrintMIBStringVal(i interface{}) string
func ResetArpTable ¶
func ResetArpTable() error
func SaveAIResult ¶
func SaveBackImage ¶
func SaveBackup ¶
func SaveBackup() error
func SaveDiscoverConf ¶
func SaveDiscoverConf() error
func SaveInfluxdbConf ¶
func SaveInfluxdbConf() error
func SaveLogBuffer ¶
func SaveLogBuffer(logBuffer []*LogEnt)
func SaveMapConf ¶
func SaveMapConf() error
func SaveNotifyConf ¶
func SaveNotifyConf() error
func SaveNotifySchedule ¶ added in v1.27.0
func SaveNotifySchedule() error
func SaveReport ¶
func SaveSshdPublicKeys ¶ added in v1.36.0
func SendAIScoreToInfluxdb ¶
func SendAIScoreToInfluxdb(pe *PollingEnt, res *AIResult) error
func SendPollingLogToInfluxdb ¶
func SendPollingLogToInfluxdb(pe *PollingEnt) error
func SetBlueDeviceName ¶ added in v1.35.0
func SetEnvMonitorName ¶ added in v1.35.0
func SetMotionSensorName ¶ added in v1.35.0
func SetPowerMonitorName ¶ added in v1.35.0
func StopBackup ¶ added in v1.2.0
func StopBackup()
func UpdateArpEnt ¶
func UpdateDBStats ¶
func UpdateDBStats()
func UpdateLine ¶
func UpdatePolling ¶
func UpdatePolling(p *PollingEnt) error
Types ¶
type AIResult ¶
func GetAIReesult ¶
type BlueDeviceEnt ¶ added in v1.4.0
type BlueDeviceEnt struct { ID string // Host + Address Host string Address string Name string AddressType string RSSI []RSSIEnt Info string Vendor string Count int64 FirstTime int64 LastTime int64 }
func GetBlueDevice ¶ added in v1.4.0
func GetBlueDevice(id string) *BlueDeviceEnt
type CertEnt ¶ added in v1.3.0
type DBBackupEnt ¶
type DBStatsEnt ¶
type DBStatsLogEnt ¶
type DNSQEnt ¶ added in v1.3.0
type DeviceEnt ¶
type DiscoverConfEnt ¶
type DrawItemEnt ¶ added in v1.20.0
type DrawItemEnt struct { ID string Type DrawItemType X int Y int W int // Width H int // Higeht Color string Path string Text string Size int // Font Size | GaugeSize PollingID string // Polling ID VarName string // Pollingから取得する項目 Format string // 表示フォーマット Value float64 // Gauge,Barの値 Values []float64 // Lineの値 Scale float64 // 値の補正倍率 }
func GetDrawItem ¶ added in v1.20.0
func GetDrawItem(id string) *DrawItemEnt
type DrawItemType ¶ added in v1.20.0
type DrawItemType int
type EnvDataEnt ¶ added in v1.4.0
type EnvDataEnt struct { Time int64 RSSI int Temp float64 Humidity float64 Illuminance float64 BarometricPressure float64 Sound float64 ETVOC float64 ECo2 float64 Battery int }
type=OMRONEnv,address=%s,name=%s,rssi=%d,seq=%d,temp=%.02f,hum=%.02f,lx=%d,press=%.02f,sound=%.02f,eTVOC=%d,eCO2=%d
type EnvMonitorEnt ¶ added in v1.4.0
type EnvMonitorEnt struct { ID string // Host + Address Host string Name string Address string EnvData []EnvDataEnt Count int64 FirstTime int64 LastTime int64 }
func GetEnvMonitor ¶ added in v1.4.0
func GetEnvMonitor(id string) *EnvMonitorEnt
type EtherTypeEnt ¶ added in v1.3.0
type EtherTypeEnt struct { ID string // ID Host:EtherType Host string Type string Name string Count int64 FirstTime int64 LastTime int64 }
func GetEtherType ¶ added in v1.3.0
func GetEtherType(id string) *EtherTypeEnt
type EventLogEnt ¶
type FlowEnt ¶
type FlowEnt struct { ID string // ID Client:Server Client string Server string Services map[string]int64 Count int64 Bytes int64 ClientName string ClientNodeID string ClientLoc string ServerName string ServerNodeID string ServerLoc string Score float64 ValidScore bool Penalty int64 FirstTime int64 LastTime int64 UpdateTime int64 }
type GrokEnt ¶
func GetGrokEnt ¶
type IPReportEnt ¶ added in v1.1.0
type IPReportEnt struct { IP string MAC string Name string NodeID string Loc string Vendor string Count int64 Change int64 Score float64 ValidScore bool Penalty int64 FirstTime int64 LastTime int64 UpdateTime int64 }
func GetIPReport ¶ added in v1.1.0
func GetIPReport(id string) *IPReportEnt
type InfluxdbConfEnt ¶
type LineEnt ¶
type LogFilterEnt ¶
type MIBInfo ¶ added in v1.16.0
type MIBInfo struct { OID string Status string Type string Enum string Defval string Units string Index string Description string EnumMap map[int]string Hint string }
func FindMIBInfo ¶ added in v1.16.0
type MIBModuleEnt ¶ added in v1.19.0
読み込んだMIBのリスト
type MIBTreeEnt ¶
type MIBTreeEnt struct { OID string `json:"oid"` Name string `json:"name"` MIBInfo *MIBInfo Children []*MIBTreeEnt `json:"children"` }
type MIBTypeEnt ¶ added in v1.33.0
type MapConfEnt ¶
type MapConfEnt struct { MapName string BackImage backImage UserID string Password string PollInt int Timeout int Retry int LogDays int LogDispSize int LogTimeout int SnmpMode string Community string SnmpUser string SnmpPassword string PublicKey string PrivateKey string // TLSCert string EnableSyslogd bool EnableTrapd bool EnableNetflowd bool EnableArpWatch bool EnableSshd bool EnableMobileAPI bool AILevel string AIThreshold int AIMode string GeoIPInfo string FontSize int AutoCharCode bool DisableOperLog bool MapSize int IconSize int }
MapConfEnt : マップ設定
type MotionSensorDataEnt ¶ added in v1.35.0
type MotionSensorEnt ¶ added in v1.35.0
type MotionSensorEnt struct { ID string // Host + Address Host string Name string Address string Data []MotionSensorDataEnt Count int64 FirstTime int64 LastTime int64 }
func GetMotionSensor ¶ added in v1.35.0
func GetMotionSensor(id string) *MotionSensorEnt
type NodeEnt ¶
type NodeEnt struct { ID string Name string Descr string Icon string State string X int Y int IP string IPv6 string MAC string SnmpMode string Community string User string Password string PublicKey string URL string Type string AddrMode string AutoAck bool }
func FindNodeFromIP ¶
func FindNodeFromMAC ¶
func FindNodeFromName ¶ added in v1.35.0
type NotifyConfEnt ¶
type NotifyConfEnt struct { MailServer string User string Password string InsecureSkipVerify bool MailTo string MailFrom string Subject string AddNodeName bool Interval int Level string Report bool CheckUpdate bool NotifyRepair bool NotifyLowScore bool NotifyNewInfo bool URL string HTMLMail bool ChatType string ChatWebhookURL string ExecCmd string LineToken string // InsecureCipherSuites bool }
type PollingEnt ¶
type PollingEnt struct { ID string Name string NodeID string Type string Mode string Params string Filter string Extractor string Script string Level string PollInt int Timeout int Retry int LogMode int NextTime int64 LastTime int64 Result map[string]interface{} State string FailAction string RepairAction string }
type PollingLogEnt ¶
type PollingLogEnt struct { Time int64 // UnixNano() PollingID string State string Result map[string]interface{} }
func GetAllPollingLog ¶
func GetAllPollingLog(pollingID string) []PollingLogEnt
GetAllPollingLog :全てのポーリングログを取得する
type PollingTemplateEnt ¶
type PollingTemplateEnt struct { ID string Name string Level string Type string Mode string Params string Filter string Extractor string Script string Descr string AutoMode string }
func GetPollingTemplate ¶
func GetPollingTemplate(id string) *PollingTemplateEnt
type PowerMonitorDataEnt ¶ added in v1.14.0
type PowerMonitorEnt ¶ added in v1.14.0
type PowerMonitorEnt struct { ID string // Host + Address Host string Name string Address string Data []PowerMonitorDataEnt Count int64 FirstTime int64 LastTime int64 }
func GetPowerMonitor ¶ added in v1.14.0
func GetPowerMonitor(id string) *PowerMonitorEnt
type RADIUSFlowEnt ¶ added in v1.3.0
type RADIUSFlowEnt struct { ID string // ID Client:Server Client string Server string Count int64 Request int64 Challenge int64 Accept int64 Reject int64 ClientName string ClientNodeID string ServerName string ServerNodeID string Score float64 ValidScore bool Penalty int64 FirstTime int64 LastTime int64 UpdateTime int64 }
func GetRADIUSFlow ¶ added in v1.3.0
func GetRADIUSFlow(id string) *RADIUSFlowEnt
type ReportConfEnt ¶
type ReportConfEnt struct { DenyCountries []string DenyServices []string AllowDNS string AllowDHCP string AllowMail string AllowLDAP string AllowLocalIP string JapanOnly bool DropFlowThTCPPacket int SensorTimeout int IncludeNoMACIP bool ExcludeIPv6 bool ReportDays int AICleanup bool }
var ReportConf ReportConfEnt
type SdrPowerEnt ¶ added in v1.14.0
type SdrPowerKey ¶ added in v1.14.0
func GetSdrPowerKeys ¶ added in v1.14.0
func GetSdrPowerKeys() []SdrPowerKey
type SensorEnt ¶ added in v1.3.0
type SensorMonitorEnt ¶ added in v1.3.0
type SensorStatsEnt ¶ added in v1.3.0
type ServerEnt ¶
type TLSFlowEnt ¶ added in v1.3.0
type TLSFlowEnt struct { ID string // ID Client:Server:Service Client string Server string Service string Count int64 Version string Cipher string ClientName string ClientNodeID string ClientLoc string ServerName string ServerNodeID string ServerLoc string Score float64 ValidScore bool Penalty int64 FirstTime int64 LastTime int64 UpdateTime int64 }
func GetTLSFlow ¶ added in v1.3.0
func GetTLSFlow(id string) *TLSFlowEnt
type UserClientEnt ¶ added in v1.1.0
type UserEnt ¶
type WifiAPEnt ¶ added in v1.4.0
type WifiAPEnt struct { ID string // HOST + BSSID Host string BSSID string SSID string RSSI []RSSIEnt Channel string Vendor string Info string Count int Change int FirstTime int64 LastTime int64 }
type=APInfo,ssid=%s,bssid=%s,rssi=%s,Channel=%s,info=%s,count=%d,change=%d,ft=%s,lt=%s
type WinAccountEnt ¶ added in v1.3.0
type WinAccountEnt struct { ID string // subject + target + computer Subject string Target string Computer string Count int64 Edit int64 Password int64 Other int64 FirstTime int64 LastTime int64 }
type=Account,subject=%s,target=%s,computer=%s,count=%d,edit=%d,password=%d,other=%d,ft=%s,lt=%s",
func GetWinAccount ¶ added in v1.3.0
func GetWinAccount(id string) *WinAccountEnt
type WinEventIDEnt ¶ added in v1.3.0
type WinEventIDEnt struct { ID string // Computer + Provider + EventID Level string Computer string Provider string Channel string EventID int Count int64 FirstTime int64 LastTime int64 }
type=EventID,computer=%s,channel=%s,provider=%s,eventID=%d,total=%d,count=%d,ft=%s,lt=%s
func GetWinEventID ¶ added in v1.3.0
func GetWinEventID(id string) *WinEventIDEnt
type WinKerberosEnt ¶ added in v1.3.0
type WinKerberosEnt struct { ID string // target + computer + ip + service + ticketType Target string Computer string IP string Service string TicketType string Count int64 Failed int64 LastCert string LastStatus string Score float64 ValidScore bool Penalty int64 FirstTime int64 LastTime int64 }
type=Kerberos,target=%s,computer=%s,ip=%s,service=%s,ticketType=%s,count=%d,failed=%d,status=%s,cert=%s,ft=%s,lt=%s type=KerberosFailed,target=%s,computer=%s,ip=%s,service=%s,ticketType=%s,status=%s,time=%s
func GetWinKerberos ¶ added in v1.3.0
func GetWinKerberos(id string) *WinKerberosEnt
type WinLogonEnt ¶ added in v1.3.0
type WinLogonEnt struct { ID string // target + computer + IP Target string Computer string IP string Count int64 Logon int64 Logoff int64 Failed int64 LogonType map[string]int FailedCode map[string]int Score float64 ValidScore bool Penalty int64 FirstTime int64 LastTime int64 }
func GetWinLogon ¶ added in v1.3.0
func GetWinLogon(id string) *WinLogonEnt
type WinPrivilegeEnt ¶ added in v1.3.0
type WinPrivilegeEnt struct { ID string // subject + computer Subject string Computer string Count int64 FirstTime int64 LastTime int64 }
type=Privilege,subject=%s,computer=%s,count=%d,ft=%s,lt=%s
func GetWinPrivilege ¶ added in v1.3.0
func GetWinPrivilege(id string) *WinPrivilegeEnt
type WinProcessEnt ¶ added in v1.3.0
type WinProcessEnt struct { ID string // Computer + Process Computer string Process string Count int64 Start int64 Exit int64 LastParent string LastSubject string LastStatus string FirstTime int64 LastTime int64 }
type=Process,computer=%s,process=%s,count=%d,start=%d,exit=%d,subject=%s,status=%s,parent=%s,ft=%s,lt=%s",
func GetWinProcess ¶ added in v1.3.0
func GetWinProcess(id string) *WinProcessEnt
type WinTaskEnt ¶ added in v1.3.0
type WinTaskEnt struct { ID string // Computer + TaskName + Subject TaskName string Computer string Subject string Count int64 FirstTime int64 LastTime int64 }
type=Task,subject=%s,taskname=%s,computer=%s,count=%d,ft=%s,lt=%s",
func GetWinTask ¶ added in v1.3.0
func GetWinTask(id string) *WinTaskEnt
Source Files
¶
- ai.go
- arp.go
- backup.go
- datastore.go
- discover.go
- geoip.go
- grok.go
- influxdb.go
- line.go
- log.go
- map.go
- mibdb.go
- node.go
- notify.go
- oui.go
- polling.go
- pollingtemplate.go
- report.go
- report_bluescan.go
- report_cert.go
- report_conf.go
- report_device.go
- report_flow.go
- report_ip.go
- report_sdrpower.go
- report_sensor.go
- report_twpcap.go
- report_twwinlog.go
- report_user.go
- report_wifiscan.go
- services.go
- stats.go
- tlsdata.go