From f936b592da7063407610de496f9ecd4dbbc3617a Mon Sep 17 00:00:00 2001 From: geek Date: Thu, 5 Jul 2018 19:07:09 +0900 Subject: [PATCH] ing --- Gopkg.lock | 4 ++-- .../activedirectory/ActiveDirectoryHealthCrawler.go | 10 +++++----- crawler/health/cassandra/CassandraHealthCrawler.go | 10 +++++----- crawler/health/ftp/FTPHealthCrawler.go | 10 +++++----- crawler/health/http/HTTPHealthCrawler.go | 10 +++++----- crawler/health/imap/IMAPHealthCrawler.go | 10 +++++----- crawler/health/ldap/LDAPHealthCrawler.go | 10 +++++----- crawler/health/mongodb/MongoDBHealthCrawler.go | 10 +++++----- crawler/health/mysql/MySQLHealthCrawler.go | 10 +++++----- crawler/health/netbios/NetBIOSHealthCrawler.go | 10 +++++----- crawler/health/oracle/OracleHealthCrawler.go | 10 +++++----- crawler/health/pop/POPHealthCrawler.go | 10 +++++----- crawler/health/postgresql/PostgreSQLHealthCrawler.go | 10 +++++----- crawler/health/redis/RedisHealthCrawler.go | 10 +++++----- crawler/health/rmi/RMIHealthCrawler.go | 10 +++++----- crawler/health/smb/SMBHealthCrawler.go | 10 +++++----- crawler/health/smtp/SMTPHealthCrawler.go | 10 +++++----- crawler/health/snmp/v2/SNMPHealthCrawler.go | 10 +++++----- crawler/health/snmp/v3/SNMPHealthCrawler.go | 10 +++++----- crawler/health/sqlserver/SQLServerHealthCrawler.go | 10 +++++----- crawler/health/telnet/TelnetHealthCrawler.go | 10 +++++----- crawler/health/wmi/WMIHealthCrawler.go | 10 +++++----- 22 files changed, 107 insertions(+), 107 deletions(-) diff --git a/Gopkg.lock b/Gopkg.lock index 40e4d7f..0d66fe0 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -111,7 +111,7 @@ "model/sensorconfig", "service/probe" ] - revision = "e2c0324eb632822050f3d0379ddd1a13c2aac2b1" + revision = "7b089c913a281a3286b3c72456e3aab67f402720" [[projects]] branch = "master" @@ -121,7 +121,7 @@ "client", "service" ] - revision = "519e96beeaa6dab24c42d87f4555906336f902fb" + revision = "99dfb7ad78c9ff2b86e0ddb4e8817e6d471c92db" [[projects]] branch = "master" diff --git a/crawler/health/activedirectory/ActiveDirectoryHealthCrawler.go b/crawler/health/activedirectory/ActiveDirectoryHealthCrawler.go index f2061f1..d86021a 100644 --- a/crawler/health/activedirectory/ActiveDirectoryHealthCrawler.go +++ b/crawler/health/activedirectory/ActiveDirectoryHealthCrawler.go @@ -24,11 +24,11 @@ func (c *ActiveDirectoryHealthCrawler) Auth(auth map[string]interface{}) error { } func (c *ActiveDirectoryHealthCrawler) Get(config *ocmsc.SensorConfig) (map[string]string, error) { - rss, err := c.CheckHealth(config) - if err != nil { - return nil, err - } - return rss, nil + //rss, err := c.CheckHealth(config) + //if err != nil { + // return nil, err + //} + return nil, nil } func NewCrawler() crawler.Crawler { diff --git a/crawler/health/cassandra/CassandraHealthCrawler.go b/crawler/health/cassandra/CassandraHealthCrawler.go index 3362a18..68b81ac 100644 --- a/crawler/health/cassandra/CassandraHealthCrawler.go +++ b/crawler/health/cassandra/CassandraHealthCrawler.go @@ -24,11 +24,11 @@ func (c *CassandraHealthCrawler) Auth(auth map[string]interface{}) error { } func (c *CassandraHealthCrawler) Get(config *ocmsc.SensorConfig) (map[string]string, error) { - rss, err := c.CheckHealth(config) - if err != nil { - return nil, err - } - return rss, nil + //rss, err := c.CheckHealth(config) + //if err != nil { + // return nil, err + //} + return nil, nil } func NewCrawler() crawler.Crawler { diff --git a/crawler/health/ftp/FTPHealthCrawler.go b/crawler/health/ftp/FTPHealthCrawler.go index d721e02..dce4ad0 100644 --- a/crawler/health/ftp/FTPHealthCrawler.go +++ b/crawler/health/ftp/FTPHealthCrawler.go @@ -24,11 +24,11 @@ func (c *FTPHealthCrawler) Auth(auth map[string]interface{}) error { } func (c *FTPHealthCrawler) Get(config *ocmsc.SensorConfig) (map[string]string, error) { - rss, err := c.CheckHealth(config) - if err != nil { - return nil, err - } - return rss, nil + //rss, err := c.CheckHealth(config) + //if err != nil { + // return nil, err + //} + return nil, nil } func NewCrawler() crawler.Crawler { diff --git a/crawler/health/http/HTTPHealthCrawler.go b/crawler/health/http/HTTPHealthCrawler.go index 870a07e..5a8fe3f 100644 --- a/crawler/health/http/HTTPHealthCrawler.go +++ b/crawler/health/http/HTTPHealthCrawler.go @@ -24,11 +24,11 @@ func (c *HTTPHealthCrawler) Auth(auth map[string]interface{}) error { } func (c *HTTPHealthCrawler) Get(config *ocmsc.SensorConfig) (map[string]string, error) { - rss, err := c.CheckHealth(config) - if err != nil { - return nil, err - } - return rss, nil + //rss, err := c.CheckHealth(config) + //if err != nil { + // return nil, err + //} + return nil, nil } func NewCrawler() crawler.Crawler { diff --git a/crawler/health/imap/IMAPHealthCrawler.go b/crawler/health/imap/IMAPHealthCrawler.go index 9a50266..c7de1bf 100644 --- a/crawler/health/imap/IMAPHealthCrawler.go +++ b/crawler/health/imap/IMAPHealthCrawler.go @@ -24,11 +24,11 @@ func (c *IMAPHealthCrawler) Auth(auth map[string]interface{}) error { } func (c *IMAPHealthCrawler) Get(config *ocmsc.SensorConfig) (map[string]string, error) { - rss, err := c.CheckHealth(config) - if err != nil { - return nil, err - } - return rss, nil + //rss, err := c.CheckHealth(config) + //if err != nil { + // return nil, err + //} + return nil, nil } func NewCrawler() crawler.Crawler { diff --git a/crawler/health/ldap/LDAPHealthCrawler.go b/crawler/health/ldap/LDAPHealthCrawler.go index 19288d0..6797115 100644 --- a/crawler/health/ldap/LDAPHealthCrawler.go +++ b/crawler/health/ldap/LDAPHealthCrawler.go @@ -24,11 +24,11 @@ func (c *LDAPHealthCrawler) Auth(auth map[string]interface{}) error { } func (c *LDAPHealthCrawler) Get(config *ocmsc.SensorConfig) (map[string]string, error) { - rss, err := c.CheckHealth(config) - if err != nil { - return nil, err - } - return rss, nil + //rss, err := c.CheckHealth(config) + //if err != nil { + // return nil, err + //} + return nil, nil } func NewCrawler() crawler.Crawler { diff --git a/crawler/health/mongodb/MongoDBHealthCrawler.go b/crawler/health/mongodb/MongoDBHealthCrawler.go index 839bc37..1fbd9be 100644 --- a/crawler/health/mongodb/MongoDBHealthCrawler.go +++ b/crawler/health/mongodb/MongoDBHealthCrawler.go @@ -24,11 +24,11 @@ func (c *MongoDBHealthCrawler) Auth(auth map[string]interface{}) error { } func (c *MongoDBHealthCrawler) Get(config *ocmsc.SensorConfig) (map[string]string, error) { - rss, err := c.CheckHealth(config) - if err != nil { - return nil, err - } - return rss, nil + //rss, err := c.CheckHealth(config) + //if err != nil { + // return nil, err + //} + return nil, nil } func NewCrawler() crawler.Crawler { diff --git a/crawler/health/mysql/MySQLHealthCrawler.go b/crawler/health/mysql/MySQLHealthCrawler.go index 6cdedd9..76a909e 100644 --- a/crawler/health/mysql/MySQLHealthCrawler.go +++ b/crawler/health/mysql/MySQLHealthCrawler.go @@ -24,11 +24,11 @@ func (c *MySQLHealthCrawler) Auth(auth map[string]interface{}) error { } func (c *MySQLHealthCrawler) Get(config *ocmsc.SensorConfig) (map[string]string, error) { - rss, err := c.CheckHealth(config) - if err != nil { - return nil, err - } - return rss, nil + //rss, err := c.CheckHealth(config) + //if err != nil { + // return nil, err + //} + return nil, nil } func NewCrawler() crawler.Crawler { diff --git a/crawler/health/netbios/NetBIOSHealthCrawler.go b/crawler/health/netbios/NetBIOSHealthCrawler.go index 88cabb2..4e6ad11 100644 --- a/crawler/health/netbios/NetBIOSHealthCrawler.go +++ b/crawler/health/netbios/NetBIOSHealthCrawler.go @@ -24,11 +24,11 @@ func (c *NetBIOSHealthCrawler) Auth(auth map[string]interface{}) error { } func (c *NetBIOSHealthCrawler) Get(config *ocmsc.SensorConfig) (map[string]string, error) { - rss, err := c.CheckHealth(config) - if err != nil { - return nil, err - } - return rss, nil + //rss, err := c.CheckHealth(config) + //if err != nil { + // return nil, err + //} + return nil, nil } func NewCrawler() crawler.Crawler { diff --git a/crawler/health/oracle/OracleHealthCrawler.go b/crawler/health/oracle/OracleHealthCrawler.go index fb35db7..41cceee 100644 --- a/crawler/health/oracle/OracleHealthCrawler.go +++ b/crawler/health/oracle/OracleHealthCrawler.go @@ -24,11 +24,11 @@ func (c *OracleHealthCrawler) Auth(auth map[string]interface{}) error { } func (c *OracleHealthCrawler) Get(config *ocmsc.SensorConfig) (map[string]string, error) { - rss, err := c.CheckHealth(config) - if err != nil { - return nil, err - } - return rss, nil + //rss, err := c.CheckHealth(config) + //if err != nil { + // return nil, err + //} + return nil, nil } func NewCrawler() crawler.Crawler { diff --git a/crawler/health/pop/POPHealthCrawler.go b/crawler/health/pop/POPHealthCrawler.go index 406b093..7b18562 100644 --- a/crawler/health/pop/POPHealthCrawler.go +++ b/crawler/health/pop/POPHealthCrawler.go @@ -24,11 +24,11 @@ func (c *POPHealthCrawler) Auth(auth map[string]interface{}) error { } func (c *POPHealthCrawler) Get(config *ocmsc.SensorConfig) (map[string]string, error) { - rss, err := c.CheckHealth(config) - if err != nil { - return nil, err - } - return rss, nil + //rss, err := c.CheckHealth(config) + //if err != nil { + // return nil, err + //} + return nil, nil } func NewCrawler() crawler.Crawler { diff --git a/crawler/health/postgresql/PostgreSQLHealthCrawler.go b/crawler/health/postgresql/PostgreSQLHealthCrawler.go index 28846f5..cf1dfdb 100644 --- a/crawler/health/postgresql/PostgreSQLHealthCrawler.go +++ b/crawler/health/postgresql/PostgreSQLHealthCrawler.go @@ -24,11 +24,11 @@ func (c *PostgreSQLHealthCrawler) Auth(auth map[string]interface{}) error { } func (c *PostgreSQLHealthCrawler) Get(config *ocmsc.SensorConfig) (map[string]string, error) { - rss, err := c.CheckHealth(config) - if err != nil { - return nil, err - } - return rss, nil + //rss, err := c.CheckHealth(config) + //if err != nil { + // return nil, err + //} + return nil, nil } func NewCrawler() crawler.Crawler { diff --git a/crawler/health/redis/RedisHealthCrawler.go b/crawler/health/redis/RedisHealthCrawler.go index be7d244..2df3d06 100644 --- a/crawler/health/redis/RedisHealthCrawler.go +++ b/crawler/health/redis/RedisHealthCrawler.go @@ -24,11 +24,11 @@ func (c *RedisHealthCrawler) Auth(auth map[string]interface{}) error { } func (c *RedisHealthCrawler) Get(config *ocmsc.SensorConfig) (map[string]string, error) { - rss, err := c.CheckHealth(config) - if err != nil { - return nil, err - } - return rss, nil + //rss, err := c.CheckHealth(config) + //if err != nil { + // return nil, err + //} + return nil, nil } func NewCrawler() crawler.Crawler { diff --git a/crawler/health/rmi/RMIHealthCrawler.go b/crawler/health/rmi/RMIHealthCrawler.go index 9de0836..08183a2 100644 --- a/crawler/health/rmi/RMIHealthCrawler.go +++ b/crawler/health/rmi/RMIHealthCrawler.go @@ -24,11 +24,11 @@ func (c *RMIHealthCrawler) Auth(auth map[string]interface{}) error { } func (c *RMIHealthCrawler) Get(config *ocmsc.SensorConfig) (map[string]string, error) { - rss, err := c.CheckHealth(config) - if err != nil { - return nil, err - } - return rss, nil + //rss, err := c.CheckHealth(config) + //if err != nil { + // return nil, err + //} + return nil, nil } func NewCrawler() crawler.Crawler { diff --git a/crawler/health/smb/SMBHealthCrawler.go b/crawler/health/smb/SMBHealthCrawler.go index 391003f..b4c7a75 100644 --- a/crawler/health/smb/SMBHealthCrawler.go +++ b/crawler/health/smb/SMBHealthCrawler.go @@ -24,11 +24,11 @@ func (c *SMBHealthCrawler) Auth(auth map[string]interface{}) error { } func (c *SMBHealthCrawler) Get(config *ocmsc.SensorConfig) (map[string]string, error) { - rss, err := c.CheckHealth(config) - if err != nil { - return nil, err - } - return rss, nil + //rss, err := c.CheckHealth(config) + //if err != nil { + // return nil, err + //} + return nil, nil } func NewCrawler() crawler.Crawler { diff --git a/crawler/health/smtp/SMTPHealthCrawler.go b/crawler/health/smtp/SMTPHealthCrawler.go index 0f8d621..7de04ba 100644 --- a/crawler/health/smtp/SMTPHealthCrawler.go +++ b/crawler/health/smtp/SMTPHealthCrawler.go @@ -24,11 +24,11 @@ func (c *SMTPHealthCrawler) Auth(auth map[string]interface{}) error { } func (c *SMTPHealthCrawler) Get(config *ocmsc.SensorConfig) (map[string]string, error) { - rss, err := c.CheckHealth(config) - if err != nil { - return nil, err - } - return rss, nil + //rss, err := c.CheckHealth(config) + //if err != nil { + // return nil, err + //} + return nil, nil } func NewCrawler() crawler.Crawler { diff --git a/crawler/health/snmp/v2/SNMPHealthCrawler.go b/crawler/health/snmp/v2/SNMPHealthCrawler.go index 5fe7e15..5b841ae 100644 --- a/crawler/health/snmp/v2/SNMPHealthCrawler.go +++ b/crawler/health/snmp/v2/SNMPHealthCrawler.go @@ -24,11 +24,11 @@ func (c *SNMPHealthCrawler) Auth(auth map[string]interface{}) error { } func (c *SNMPHealthCrawler) Get(config *ocmsc.SensorConfig) (map[string]string, error) { - rss, err := c.CheckHealth(config) - if err != nil { - return nil, err - } - return rss, nil + //rss, err := c.CheckHealth(config) + //if err != nil { + // return nil, err + //} + return nil, nil } func NewCrawler() crawler.Crawler { diff --git a/crawler/health/snmp/v3/SNMPHealthCrawler.go b/crawler/health/snmp/v3/SNMPHealthCrawler.go index 6f02432..15c478f 100644 --- a/crawler/health/snmp/v3/SNMPHealthCrawler.go +++ b/crawler/health/snmp/v3/SNMPHealthCrawler.go @@ -24,11 +24,11 @@ func (c *SNMPHealthCrawler) Auth(auth map[string]interface{}) error { } func (c *SNMPHealthCrawler) Get(config *ocmsc.SensorConfig) (map[string]string, error) { - rss, err := c.CheckHealth(config) - if err != nil { - return nil, err - } - return rss, nil + //rss, err := c.CheckHealth(config) + //if err != nil { + // return nil, err + //} + return nil, nil } func NewCrawler() crawler.Crawler { diff --git a/crawler/health/sqlserver/SQLServerHealthCrawler.go b/crawler/health/sqlserver/SQLServerHealthCrawler.go index bf0b1f0..251692f 100644 --- a/crawler/health/sqlserver/SQLServerHealthCrawler.go +++ b/crawler/health/sqlserver/SQLServerHealthCrawler.go @@ -24,11 +24,11 @@ func (c *SQLServerHealthCrawler) Auth(auth map[string]interface{}) error { } func (c *SQLServerHealthCrawler) Get(config *ocmsc.SensorConfig) (map[string]string, error) { - rss, err := c.CheckHealth(config) - if err != nil { - return nil, err - } - return rss, nil + //rss, err := c.CheckHealth(config) + //if err != nil { + // return nil, err + //} + return nil, nil } func NewCrawler() crawler.Crawler { diff --git a/crawler/health/telnet/TelnetHealthCrawler.go b/crawler/health/telnet/TelnetHealthCrawler.go index d723052..45fca47 100644 --- a/crawler/health/telnet/TelnetHealthCrawler.go +++ b/crawler/health/telnet/TelnetHealthCrawler.go @@ -24,11 +24,11 @@ func (c *TelnetHealthCrawler) Auth(auth map[string]interface{}) error { } func (c *TelnetHealthCrawler) Get(config *ocmsc.SensorConfig) (map[string]string, error) { - rss, err := c.CheckHealth(config) - if err != nil { - return nil, err - } - return rss, nil + //rss, err := c.CheckHealth(config) + //if err != nil { + // return nil, err + //} + return nil, nil } func NewCrawler() crawler.Crawler { diff --git a/crawler/health/wmi/WMIHealthCrawler.go b/crawler/health/wmi/WMIHealthCrawler.go index 4286017..d531efe 100644 --- a/crawler/health/wmi/WMIHealthCrawler.go +++ b/crawler/health/wmi/WMIHealthCrawler.go @@ -24,11 +24,11 @@ func (c *WMIHealthCrawler) Auth(auth map[string]interface{}) error { } func (c *WMIHealthCrawler) Get(config *ocmsc.SensorConfig) (map[string]string, error) { - rss, err := c.CheckHealth(config) - if err != nil { - return nil, err - } - return rss, nil + //rss, err := c.CheckHealth(config) + //if err != nil { + // return nil, err + //} + return nil, nil } func NewCrawler() crawler.Crawler {