changed beegfs lookup path

This commit is contained in:
Mehmet Soysal 2022-03-04 14:20:02 +01:00
parent 4c5a915f74
commit 63df444409
No known key found for this signature in database
GPG Key ID: 7B6342DE1987F322
2 changed files with 4 additions and 2 deletions

View File

@ -18,6 +18,8 @@ import (
lp "github.com/ClusterCockpit/cc-metric-collector/internal/ccMetric"
)
const DEFAULT_BEEGFS_CMD = "beegfs-ctl"
// Struct for the collector-specific JSON config
type BeegfsMetaCollectorConfig struct {
Beegfs string `json:"beegfs_path"`
@ -55,7 +57,7 @@ func (m *BeegfsMetaCollector) Init(config json.RawMessage) error {
m.setup()
// Set default beegfs-ctl binary
m.config.Beegfs = "/usr/bin/beegfs-ctl"
m.config.Beegfs = DEFAULT_BEEGFS_CMD
// Read JSON configuration
if len(config) > 0 {

View File

@ -50,7 +50,7 @@ func (m *BeegfsStorageCollector) Init(config json.RawMessage) error {
m.setup()
// Set default beegfs-ctl binary
m.config.Beegfs = "/usr/bin/beegfs-ctl"
m.config.Beegfs = DEFAULT_BEEGFS_CMD
// Read JSON configuration
if len(config) > 0 {