This commit is contained in:
insanity 2018-07-05 14:41:03 +09:00
parent 3228ee9601
commit 2d045fa966
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ func (c *SSHHealthCrawler) Get(config *ocmsc.SensorConfig) (map[string]string, e
for _, mci := range config.MetaCollectionItems { for _, mci := range config.MetaCollectionItems {
switch mci.Key { switch mci.Key {
case "service.health.response_time": case "ssh.response_time":
start := time.Now().UTC() start := time.Now().UTC()
if err := c.CheckHealth(config, conn); err != nil { if err := c.CheckHealth(config, conn); err != nil {
return nil, err return nil, err

View File

@ -12,7 +12,7 @@ func TestMatch(t *testing.T) {
config := &ocmsc.SensorConfig{} config := &ocmsc.SensorConfig{}
config.Connection = &ocmsc.SensorConfigConnection{ config.Connection = &ocmsc.SensorConfigConnection{
MetaIPTypeKey: "V4", MetaIPTypeKey: "V4",
IP: "192.168.1.103", IP: "192.168.1.111",
MetaPortTypeKey: "TCP", MetaPortTypeKey: "TCP",
Port: "22", Port: "22",
MetaCryptoTypeKey: "SSL", MetaCryptoTypeKey: "SSL",