mirror of
				https://github.com/ClusterCockpit/cc-metric-collector.git
				synced 2025-11-04 02:35:07 +01:00 
			
		
		
		
	Remove logging and enable command execution for GangliaSink
This commit is contained in:
		@@ -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
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user