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