added processing err

This commit is contained in:
insanity@loafle.com 2017-05-17 11:52:08 +09:00
parent dd431cf8b9
commit fa53ca1724
24 changed files with 25 additions and 24 deletions
health_crawler
activedirectory_protocol_crawler_go
cassandra_protocol_crawler_go
dns_protocol_crawler_go
ftp_protocol_crawler_go
ftps_protocol_crawler_go
http_protocol_crawler_go
imap_protocol_crawler_go
ldap_protocol_crawler_go
mongodb_protocol_crawler_go
mssql_protocol_crawler_go
mysql_protocol_crawler_go
netbios_protocol_crawler_go
oracle_protocol_crawler_go
pgsql_protocol_crawler_go
pop3_protocol_crawler_go
redis_protocol_crawler_go
rmi_protocol_crawler_go
smb_protocol_crawler_go
smtp_protocol_crawler_go
snmpv2c_protocol_crawler_go
snmpv3_protocol_crawler_go
ssh_protocol_crawler_go
telnet_protocol_crawler_go
wmi_protocol_crawler_go

View File

@ -15,7 +15,7 @@ func (r *ActiveDirectoryHealthCrawler) Internal(params config.Config) ([]byte, e
b, err := r.CheckHeahth(params)
if err != nil {
// set error
return nil, err
}
return json.Marshal(b)
}

View File

@ -15,7 +15,7 @@ func (r *CassandraHealthCrawler)Internal(params config.Config) ([]byte, error) {
b, err := r.CheckHeahth(params)
if err != nil {
// set error
return nil, err
}
return json.Marshal(b)
}

View File

@ -15,7 +15,7 @@ func (r *DNSHealthCrawler)Internal(params config.Config) ([]byte, error) {
b, err := r.CheckHeahth(params)
if err != nil {
// set error
return nil, err
}
return json.Marshal(b)
}

View File

@ -16,7 +16,7 @@ func (r *FTPHealthCrawler)Internal(params config.Config) ([]byte, error) {
b, err := r.CheckHeahth(params)
if err != nil {
// set error
return nil, err
}
return json.Marshal(b)
}

View File

@ -16,7 +16,7 @@ func (r *FTPSHealthCrawler) Internal(params config.Config) ([]byte, error) {
b, err := r.CheckHeahth(params)
if err != nil {
// set error
return nil, err
}
return json.Marshal(b)
}

View File

@ -15,7 +15,7 @@ func (r *HTTPHealthCrawler)Internal(params config.Config) ([]byte, error) {
b, err := r.CheckHeahth(params)
if err != nil {
// set error
return nil, err
}
return json.Marshal(b)
}

View File

@ -15,7 +15,7 @@ func (r *IMAPHealthCrawler)Internal(params config.Config) ([]byte, error) {
b, err := r.CheckHeahth(params)
if err != nil {
// set error
return nil, err
}
return json.Marshal(b)
}

View File

@ -15,7 +15,7 @@ func (r *LDAPHealthCrawler)Internal(params config.Config) ([]byte, error) {
b, err := r.CheckHeahth(params)
if err != nil {
// set error
return nil, err
}
return json.Marshal(b)
}

View File

@ -15,7 +15,7 @@ func (r *MongoDBHealthCrawler)Internal(params config.Config) ([]byte, error) {
b, err := r.CheckHeahth(params)
if err != nil {
// set error
return nil, err
}
return json.Marshal(b)
}

View File

@ -15,7 +15,7 @@ func (r *MSSqlHeahthCrawler) Internal(params config.Config) ([]byte, error) {
b, err := r.CheckHeahth(params)
if err != nil {
// set error
return nil, err
}
return json.Marshal(b)
}

View File

@ -16,7 +16,7 @@ func (r *MysqlHeahthCrawler)Internal(params config.Config) ([]byte, error) {
b, err := r.CheckHeahth(params)
if err != nil {
// set error
return nil, err
}
return json.Marshal(b)
}

View File

@ -16,7 +16,7 @@ func (r *NetbiosHeahthCrawler) Internal(params config.Config) ([]byte, error) {
b, err := r.CheckHeahth(params)
if err != nil {
// set error
return nil, err
}
return json.Marshal(b)
}

View File

@ -15,7 +15,7 @@ func (r *OracleHeahthCrawler) Internal(params config.Config) ([]byte, error) {
b, err := r.CheckHeahth(params)
if err != nil {
// set error
return nil, err
}
return json.Marshal(b)
}

View File

@ -15,7 +15,7 @@ func (r *PGSqlHeahthCrawler)Internal(params config.Config) ([]byte, error) {
b, err := r.CheckHeahth(params)
if err != nil {
// set error
return nil, err
}
return json.Marshal(b)
}

View File

@ -15,7 +15,7 @@ func (r *POP3HeahthCrawler) Internal(params config.Config) ([]byte, error) {
b, err := r.CheckHeahth(params)
if err != nil {
// set error
return nil, err
}
return json.Marshal(b)
}

View File

@ -15,7 +15,7 @@ func (r *RedisHeahthCrawler) Internal(params config.Config) ([]byte, error) {
b, err := r.CheckHeahth(params)
if err != nil {
// set error
return nil, err
}
return json.Marshal(b)
}

View File

@ -15,7 +15,7 @@ func (r *RMIHeahthCrawler)Internal(params config.Config) ([]byte, error) {
b, err := r.CheckHeahth(params)
if err != nil {
// set error
return nil, err
}
return json.Marshal(b)
}

View File

@ -15,7 +15,7 @@ func (r *SMBHeahthCrawler) Internal(params config.Config) ([]byte, error) {
b, err := r.CheckHeahth(params)
if err != nil {
// set error
return nil, err
}
return json.Marshal(b)
}

View File

@ -15,7 +15,7 @@ func (r *SMTPHeahthCrawler) Internal(params config.Config) ([]byte, error) {
b, err := r.CheckHeahth(params)
if err != nil {
// set error
return nil, err
}
return json.Marshal(b)
}

View File

@ -15,7 +15,7 @@ func (r *SNMPV2CHeahthCrawler)Internal(params config.Config) ([]byte, error) {
b, err := r.CheckHeahth(params)
if err != nil {
// set error
return nil, err
}
return json.Marshal(b)
}

View File

@ -5,6 +5,7 @@ import (
"loafle.com/overflow/commons_go/matcher/snmp"
"loafle.com/overflow/crawler_go"
config "loafle.com/overflow/agent_api/config_manager"
"log"
)
type SNMPV3HeahthCrawler struct {
@ -15,7 +16,7 @@ func (r *SNMPV3HeahthCrawler) Internal(params config.Config) ([]byte, error) {
b, err := r.CheckHeahth(params)
if err != nil {
// set error
return nil, err
}
return json.Marshal(b)
}

View File

@ -15,7 +15,7 @@ func (r *SSHHeahthCrawler) Internal(params config.Config) ([]byte, error) {
b, err := r.CheckHeahth(params)
if err != nil {
// set error
return nil, err
}
return json.Marshal(b)
}

View File

@ -15,7 +15,7 @@ func (r *TelnetHeahthCrawler)Internal(params config.Config) ([]byte, error) {
b, err := r.CheckHeahth(params)
if err != nil {
// set error
return nil, err
}
return json.Marshal(b)
}

View File

@ -15,7 +15,7 @@ func (r *WMIHeahthCrawler)Internal(params config.Config) ([]byte, error) {
b, err := r.CheckHeahth(params)
if err != nil {
// set error
return nil, err
}
return json.Marshal(b)
}