From a4a6c9c2616561c8fb3743f6437a327c1804d5fa Mon Sep 17 00:00:00 2001 From: kekskurse Date: Mon, 20 Sep 2021 14:06:11 +0200 Subject: [PATCH] dev: hdd just physical stuff --- config.go | 2 -- internal/pkg/checks/hdd.go | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/config.go b/config.go index 4406c85..a986378 100644 --- a/config.go +++ b/config.go @@ -1,7 +1,6 @@ package main import ( - "fmt" "github.com/rs/zerolog/log" "gopkg.in/yaml.v2" "http-server-status/internal/pkg/checks" @@ -23,7 +22,6 @@ type Config struct { } func readConfig() { - fmt.Println(os.Args) filename := "/etc/http-server-status/config.yml" if len(os.Args) > 1 { filename = os.Args[1] diff --git a/internal/pkg/checks/hdd.go b/internal/pkg/checks/hdd.go index 8169c63..fddbb54 100644 --- a/internal/pkg/checks/hdd.go +++ b/internal/pkg/checks/hdd.go @@ -1,7 +1,6 @@ package checks import ( - "github.com/rs/zerolog/log" "github.com/shirou/gopsutil/disk" ) @@ -15,8 +14,7 @@ type HDD struct { func (h HDD) Execute() (ok bool, data interface{}, err error) { success := true - parts, _ := disk.Partitions(true) - log.Debug().Int("max_percent", h.Config.MaxPercent).Msg("Execute HDD Check") + parts, _ := disk.Partitions(false) usage := make(map[string]float64) for _, p := range parts { device := p.Mountpoint