mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-12-25 07:09:04 +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"
|
||||
"errors"
|
||||
"fmt"
|
||||
"log"
|
||||
"strings"
|
||||
|
||||
// "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.Wait()
|
||||
// _, err := command.Output()
|
||||
command := exec.Command(string(GMETRIC_EXEC), strings.Join(argstr, " "))
|
||||
command.Wait()
|
||||
_, err = command.Output()
|
||||
return err
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user