mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-12-25 15:09:05 +01:00
Remove logging and enable command execution for GangliaSink
This commit is contained in:
parent
9e73dcd437
commit
8c744617be
@ -4,7 +4,6 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
// "time"
|
// "time"
|
||||||
@ -116,10 +115,9 @@ func (s *GangliaSink) Write(point lp.CCMetric) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
log.Print(s.gmetric_path, " ", strings.Join(argstr, " "))
|
command := exec.Command(string(GMETRIC_EXEC), strings.Join(argstr, " "))
|
||||||
// command := exec.Command(string(GMETRIC_EXEC), strings.Join(argstr, " "))
|
command.Wait()
|
||||||
// command.Wait()
|
_, err = command.Output()
|
||||||
// _, err := command.Output()
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user