test
This commit is contained in:
parent
3228ee9601
commit
2d045fa966
|
@ -36,7 +36,7 @@ func (c *SSHHealthCrawler) Get(config *ocmsc.SensorConfig) (map[string]string, e
|
|||
|
||||
for _, mci := range config.MetaCollectionItems {
|
||||
switch mci.Key {
|
||||
case "service.health.response_time":
|
||||
case "ssh.response_time":
|
||||
start := time.Now().UTC()
|
||||
if err := c.CheckHealth(config, conn); err != nil {
|
||||
return nil, err
|
||||
|
|
|
@ -12,7 +12,7 @@ func TestMatch(t *testing.T) {
|
|||
config := &ocmsc.SensorConfig{}
|
||||
config.Connection = &ocmsc.SensorConfigConnection{
|
||||
MetaIPTypeKey: "V4",
|
||||
IP: "192.168.1.103",
|
||||
IP: "192.168.1.111",
|
||||
MetaPortTypeKey: "TCP",
|
||||
Port: "22",
|
||||
MetaCryptoTypeKey: "SSL",
|
||||
|
|
Loading…
Reference in New Issue
Block a user