ing
This commit is contained in:
parent
6b10353dd0
commit
12e5d76b6c
9
Gopkg.lock
generated
9
Gopkg.lock
generated
|
@ -78,7 +78,7 @@
|
|||
"telnet",
|
||||
"wmi"
|
||||
]
|
||||
revision = "f5a697e4d15125f4fcae754a56b71e5b1d00e57c"
|
||||
revision = "297c909956a0892b9e547370384012cbe2992b9d"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
|
@ -110,7 +110,7 @@
|
|||
"model/sensorconfig",
|
||||
"service/probe"
|
||||
]
|
||||
revision = "687985e7f2122d12e43a0111f13d6df9921c3d82"
|
||||
revision = "7e2ff26648aefbafaee2ca28c1a958332ae4c6f9"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
|
@ -126,7 +126,7 @@
|
|||
branch = "master"
|
||||
name = "git.loafle.net/overflow/crawler-go"
|
||||
packages = ["."]
|
||||
revision = "377582c76e19dcd275b6746ac519340c4625d32b"
|
||||
revision = "bae05dbc820773ec5b584cb39614216dd408a7f7"
|
||||
|
||||
[[projects]]
|
||||
name = "github.com/BurntSushi/toml"
|
||||
|
@ -228,10 +228,11 @@
|
|||
"ed25519",
|
||||
"ed25519/internal/edwards25519",
|
||||
"internal/chacha20",
|
||||
"internal/subtle",
|
||||
"poly1305",
|
||||
"ssh"
|
||||
]
|
||||
revision = "8ac0e0d97ce45cd83d1d7243c060cb8461dda5e9"
|
||||
revision = "7f39a6fea4fe9364fb61e1def6a268a51b4f3a06"
|
||||
|
||||
[[projects]]
|
||||
name = "gopkg.in/yaml.v2"
|
||||
|
|
|
@ -61,7 +61,7 @@ func init() {
|
|||
}
|
||||
|
||||
func addCrawler(c crawler.Crawler) {
|
||||
crawlers[c.Name()] = c
|
||||
crawlers[c.Key()] = c
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ type ActiveDirectoryHealthCrawler struct {
|
|||
health.SocketHeahthCrawler
|
||||
}
|
||||
|
||||
func (c *ActiveDirectoryHealthCrawler) Name() string {
|
||||
func (c *ActiveDirectoryHealthCrawler) Key() string {
|
||||
return "ACTIVEDIRECTORY_HEALTH"
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ type CassandraHealthCrawler struct {
|
|||
health.SocketHeahthCrawler
|
||||
}
|
||||
|
||||
func (c *CassandraHealthCrawler) Name() string {
|
||||
func (c *CassandraHealthCrawler) Key() string {
|
||||
return "CASSANDRA_HEALTH"
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ type DNSHealthCrawler struct {
|
|||
health.SocketHeahthCrawler
|
||||
}
|
||||
|
||||
func (c *DNSHealthCrawler) Name() string {
|
||||
func (c *DNSHealthCrawler) Key() string {
|
||||
return "DNS_HEALTH"
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ type FTPHealthCrawler struct {
|
|||
health.SocketHeahthCrawler
|
||||
}
|
||||
|
||||
func (c *FTPHealthCrawler) Name() string {
|
||||
func (c *FTPHealthCrawler) Key() string {
|
||||
return "FTP_HEALTH"
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ type HTTPHealthCrawler struct {
|
|||
health.SocketHeahthCrawler
|
||||
}
|
||||
|
||||
func (c *HTTPHealthCrawler) Name() string {
|
||||
func (c *HTTPHealthCrawler) Key() string {
|
||||
return "HTTP_HEALTH"
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ type IMAPHealthCrawler struct {
|
|||
health.SocketHeahthCrawler
|
||||
}
|
||||
|
||||
func (c *IMAPHealthCrawler) Name() string {
|
||||
func (c *IMAPHealthCrawler) Key() string {
|
||||
return "IMAP_HEALTH"
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ type LDAPHealthCrawler struct {
|
|||
health.SocketHeahthCrawler
|
||||
}
|
||||
|
||||
func (c *LDAPHealthCrawler) Name() string {
|
||||
func (c *LDAPHealthCrawler) Key() string {
|
||||
return "LDAP_HEALTH"
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ type MongoDBHealthCrawler struct {
|
|||
health.SocketHeahthCrawler
|
||||
}
|
||||
|
||||
func (c *MongoDBHealthCrawler) Name() string {
|
||||
func (c *MongoDBHealthCrawler) Key() string {
|
||||
return "MONGODB_HEALTH"
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ type MySQLHealthCrawler struct {
|
|||
health.SocketHeahthCrawler
|
||||
}
|
||||
|
||||
func (c *MySQLHealthCrawler) Name() string {
|
||||
func (c *MySQLHealthCrawler) Key() string {
|
||||
return "MYSQL_HEALTH"
|
||||
}
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@ type NetBIOSHealthCrawler struct {
|
|||
health.SocketHeahthCrawler
|
||||
}
|
||||
|
||||
func (c *NetBIOSHealthCrawler) Name() string {
|
||||
return "NETBIOS_HEALTH"
|
||||
func (c *NetBIOSHealthCrawler) Key() string {
|
||||
return "NBSS_HEALTH"
|
||||
}
|
||||
|
||||
func (c *NetBIOSHealthCrawler) String() string {
|
||||
|
|
|
@ -11,7 +11,7 @@ type OracleHealthCrawler struct {
|
|||
health.SocketHeahthCrawler
|
||||
}
|
||||
|
||||
func (c *OracleHealthCrawler) Name() string {
|
||||
func (c *OracleHealthCrawler) Key() string {
|
||||
return "ORACLE_HEALTH"
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ type POPHealthCrawler struct {
|
|||
health.SocketHeahthCrawler
|
||||
}
|
||||
|
||||
func (c *POPHealthCrawler) Name() string {
|
||||
func (c *POPHealthCrawler) Key() string {
|
||||
return "POP_HEALTH"
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ type PostgreSQLHealthCrawler struct {
|
|||
health.SocketHeahthCrawler
|
||||
}
|
||||
|
||||
func (c *PostgreSQLHealthCrawler) Name() string {
|
||||
func (c *PostgreSQLHealthCrawler) Key() string {
|
||||
return "POSTGRESQL_HEALTH"
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ type RedisHealthCrawler struct {
|
|||
health.SocketHeahthCrawler
|
||||
}
|
||||
|
||||
func (c *RedisHealthCrawler) Name() string {
|
||||
func (c *RedisHealthCrawler) Key() string {
|
||||
return "REDIS_HEALTH"
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ type RMIHealthCrawler struct {
|
|||
health.SocketHeahthCrawler
|
||||
}
|
||||
|
||||
func (c *RMIHealthCrawler) Name() string {
|
||||
func (c *RMIHealthCrawler) Key() string {
|
||||
return "RMI_HEALTH"
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ type SMBHealthCrawler struct {
|
|||
health.SocketHeahthCrawler
|
||||
}
|
||||
|
||||
func (c *SMBHealthCrawler) Name() string {
|
||||
func (c *SMBHealthCrawler) Key() string {
|
||||
return "SMB_HEALTH"
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ type SMTPHealthCrawler struct {
|
|||
health.SocketHeahthCrawler
|
||||
}
|
||||
|
||||
func (c *SMTPHealthCrawler) Name() string {
|
||||
func (c *SMTPHealthCrawler) Key() string {
|
||||
return "SMTP_HEALTH"
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ type SNMPHealthCrawler struct {
|
|||
health.SocketHeahthCrawler
|
||||
}
|
||||
|
||||
func (c *SNMPHealthCrawler) Name() string {
|
||||
func (c *SNMPHealthCrawler) Key() string {
|
||||
return "SNMPV2C_HEALTH"
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ type SNMPHealthCrawler struct {
|
|||
health.SocketHeahthCrawler
|
||||
}
|
||||
|
||||
func (c *SNMPHealthCrawler) Name() string {
|
||||
func (c *SNMPHealthCrawler) Key() string {
|
||||
return "SNMPV3_HEALTH"
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ type SQLServerHealthCrawler struct {
|
|||
health.SocketHeahthCrawler
|
||||
}
|
||||
|
||||
func (c *SQLServerHealthCrawler) Name() string {
|
||||
func (c *SQLServerHealthCrawler) Key() string {
|
||||
return "SQLSERVER_HEALTH"
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ type SSHHealthCrawler struct {
|
|||
health.SocketHeahthCrawler
|
||||
}
|
||||
|
||||
func (c *SSHHealthCrawler) Name() string {
|
||||
func (c *SSHHealthCrawler) Key() string {
|
||||
return "SSH_HEALTH"
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ type TelnetHealthCrawler struct {
|
|||
health.SocketHeahthCrawler
|
||||
}
|
||||
|
||||
func (c *TelnetHealthCrawler) Name() string {
|
||||
func (c *TelnetHealthCrawler) Key() string {
|
||||
return "TELNET_HEALTH"
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ type WMIHealthCrawler struct {
|
|||
health.SocketHeahthCrawler
|
||||
}
|
||||
|
||||
func (c *WMIHealthCrawler) Name() string {
|
||||
func (c *WMIHealthCrawler) Key() string {
|
||||
return "WMI_HEALTH"
|
||||
}
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ type SSHCrawler struct {
|
|||
crawler.Crawler
|
||||
}
|
||||
|
||||
func (c *SSHCrawler) Name() string {
|
||||
func (c *SSHCrawler) Key() string {
|
||||
return "SSH"
|
||||
}
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
type CPUParser struct {
|
||||
}
|
||||
|
||||
func (p *CPUParser) Name() string {
|
||||
func (p *CPUParser) Key() string {
|
||||
return "cpu"
|
||||
}
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
type MemoryParser struct {
|
||||
}
|
||||
|
||||
func (p *MemoryParser) Name() string {
|
||||
func (p *MemoryParser) Key() string {
|
||||
return "mem"
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ func init() {
|
|||
}
|
||||
|
||||
func addParser(p Parser) {
|
||||
parsers[p.Name()] = p
|
||||
parsers[p.Key()] = p
|
||||
}
|
||||
|
||||
func GetParser(name string) Parser {
|
||||
|
@ -24,7 +24,7 @@ func GetParser(name string) Parser {
|
|||
}
|
||||
|
||||
type Parser interface {
|
||||
Name() string
|
||||
Key() string
|
||||
Parse(scanner *ParserScanner) (map[string]string, error)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user