os

package
v0.0.0-...-1489327 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: GPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlertConnect

func AlertConnect(mysql *xorm.Engine, db_id int)

func CheckExpression

func CheckExpression(tri common.Trigger, item_value string) int

func Check_Item_Status

func Check_Item_Status(mysql *xorm.Engine, os_id int, host string, trigger_type string, item_name string, item_value string)

func ExecTriggers

func ExecTriggers(mysql *xorm.Engine, db_id int, trigger_type string, item_name string, item_value string)

func GatherLinuxBasicInfo

func GatherLinuxBasicInfo(snmp *gs.GoSNMP, mysql *xorm.Engine, os_id int, host string, alias string, port int) error

func GatherLinuxDiskIOInfo

func GatherLinuxDiskIOInfo(mysql *xorm.Engine, os_id int, host string, alias string) error

func GatherLinuxDiskInfo

func GatherLinuxDiskInfo(snmp *gs.GoSNMP, mysql *xorm.Engine, os_id int, host string, alias string) error

func GatherLinuxNetInfo

func GatherLinuxNetInfo(snmp *gs.GoSNMP, mysql *xorm.Engine, os_id int, host string, alias string) error

func GatherOSStatus

func GatherOSStatus(mysql *xorm.Engine, os_id int, host string)

func GatherWinBasicInfo

func GatherWinBasicInfo(client *winrm.Client, mysql *xorm.Engine, os_id int, host string, alias string) error

func GatherWinDiskIOInfo

func GatherWinDiskIOInfo(client *winrm.Client, mysql *xorm.Engine, os_id int, host string, alias string) error

func GatherWinDiskInfo

func GatherWinDiskInfo(client *winrm.Client, mysql *xorm.Engine, os_id int, host string, alias string) error

func GatherWinNetInfo

func GatherWinNetInfo(client *winrm.Client, mysql *xorm.Engine, os_id int, host string, alias string) error

func GenerateLinuxStats

func GenerateLinuxStats(wg *sync.WaitGroup, mysql *xorm.Engine, os_id int, host string, port int, alias string, is_alert int)

func GenerateWinStats

func GenerateWinStats(wg *sync.WaitGroup, mysql *xorm.Engine, os_id int, host string, port int, alias string, username string, password string, is_alert int)

func GetBytesReceivedPerSec

func GetBytesReceivedPerSec(client *winrm.Client, net string) (int64, error)

func GetBytesSentPerSec

func GetBytesSentPerSec(client *winrm.Client, net string) (int64, error)

func GetColumnValue

func GetColumnValue(mysql *xorm.Engine, column string, db_id int) string

func GetConnect

func GetConnect(mysql *xorm.Engine, db_id int) string

func GetCpuUsage

func GetCpuUsage(mysql *xorm.Engine, os_id int) string

func GetDiskIOReadTotal

func GetDiskIOReadTotal(mysql *xorm.Engine, os_id int) int64

func GetDiskIOReadsOld

func GetDiskIOReadsOld(mysql *xorm.Engine, os_id int, fdisk string) int64

func GetDiskIOTime

func GetDiskIOTime(mysql *xorm.Engine, os_id int, fdisk string) int64

func GetDiskIOWriteTotal

func GetDiskIOWriteTotal(mysql *xorm.Engine, os_id int) int64

func GetDiskIOWritesOld

func GetDiskIOWritesOld(mysql *xorm.Engine, os_id int, fdisk string) int64

func GetDiskReadBytesPerSec

func GetDiskReadBytesPerSec(client *winrm.Client, driver string) (int64, error)

func GetDiskWriteBytesPerSec

func GetDiskWriteBytesPerSec(client *winrm.Client, driver string) (int64, error)

func GetDriverFreeSize

func GetDriverFreeSize(client *winrm.Client, driver string) (int64, error)

func GetDriverSize

func GetDriverSize(client *winrm.Client, driver string) (int64, error)

func GetHostname

func GetHostname(snmp *gs.GoSNMP) (string, error)

func GetIOTotal

func GetIOTotal(mysql *xorm.Engine, os_id int) string

func GetKernel

func GetKernel(snmp *gs.GoSNMP) (string, error)

func GetNetBytesIn

func GetNetBytesIn(host string, netid string) (int64, error)

func GetNetBytesOut

func GetNetBytesOut(host string, netid string) (int64, error)

func GetNetDescr

func GetNetDescr(host string) (map[string]string, error)

func GetNetInBytesOld

func GetNetInBytesOld(mysql *xorm.Engine, os_id int, fdisk string) int64

func GetNetInBytesTotal

func GetNetInBytesTotal(mysql *xorm.Engine, os_id int) int64

func GetNetOutBytesOld

func GetNetOutBytesOld(mysql *xorm.Engine, os_id int, fdisk string) int64

func GetNetOutBytesTotal

func GetNetOutBytesTotal(mysql *xorm.Engine, os_id int) int64

func GetNetTime

func GetNetTime(mysql *xorm.Engine, os_id int, fdisk string) int64

func GetNetTotal

func GetNetTotal(mysql *xorm.Engine, os_id int) string

func GetProcess

func GetProcess(snmp *gs.GoSNMP) (int64, error)

func GetSnmpInt64ByOids

func GetSnmpInt64ByOids(snmp *gs.GoSNMP, oids []string) (map[int]int64, error)

func GetSnmpStringByOids

func GetSnmpStringByOids(snmp *gs.GoSNMP, oids []string) (map[int]string, error)

func GetSystemDate

func GetSystemDate(snmp *gs.GoSNMP) (string, error)

func GetUptime

func GetUptime(snmp *gs.GoSNMP) (string, error)

func GetWinHostname

func GetWinHostname(client *winrm.Client) (string, error)

func GetWinIdleCPU

func GetWinIdleCPU(client *winrm.Client) (string, error)

func GetWinKernel

func GetWinKernel(client *winrm.Client) (string, error)

func GetWinMemoryFree

func GetWinMemoryFree(client *winrm.Client) (int64, error)

func GetWinMemoryTotal

func GetWinMemoryTotal(client *winrm.Client) (int64, error)

func GetWinProcess

func GetWinProcess(client *winrm.Client) (int, error)

func GetWinSystemDate

func GetWinSystemDate(client *winrm.Client) (string, error)

func GetWinUptime

func GetWinUptime(client *winrm.Client) (string, error)

func MoveToHistory

func MoveToHistory(mysql *xorm.Engine, table_name string, key_name string, key_value int)

func ToBigInt

func ToBigInt(value interface{}) int64

func Update_Item_Tips

func Update_Item_Tips(mysql *xorm.Engine, host string, field string, value string, trigger_type string, level int, severity string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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