From f8bafbbff091f42bc069322db28b9d3562e7e857 Mon Sep 17 00:00:00 2001 From: asandikci Date: Fri, 25 Aug 2023 15:13:52 +0300 Subject: [PATCH] fix: change ahenk daemon name --- cmd/ahenk-go/main.go | 4 ++-- debian/ahenk-go.service | 2 +- plugins/resources/main.go | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/ahenk-go/main.go b/cmd/ahenk-go/main.go index ac957e9..cb71627 100644 --- a/cmd/ahenk-go/main.go +++ b/cmd/ahenk-go/main.go @@ -11,8 +11,8 @@ import ( "golang.org/x/exp/slices" ) -const PidFile = "/run/ahenkd-go.pid" -const ExecutablePath = "/usr/bin/ahenkd-go" +const PidFile = "/run/ahenk-go.pid" +const ExecutablePath = "/usr/bin/ahenk-go" const DataDir = "/etc/ahenk-go/" const LogFile = DataDir + "ahenk.log" const LibDir = "/usr/share/ahenk-go/" diff --git a/debian/ahenk-go.service b/debian/ahenk-go.service index 113bd46..0e69313 100644 --- a/debian/ahenk-go.service +++ b/debian/ahenk-go.service @@ -10,7 +10,7 @@ Group=root ExecStart=/usr/bin/ahenk-go start ExecStop=/usr/bin/ahenk-go stop ExecReload=kill -HUP $MAINPID -PIDFile=/run/ahenkd-go.pid +PIDFile=/run/ahenk-go.pid Restart=always [Install] diff --git a/plugins/resources/main.go b/plugins/resources/main.go index 84bc17d..03fb7fe 100644 --- a/plugins/resources/main.go +++ b/plugins/resources/main.go @@ -14,8 +14,8 @@ var ResourcesConnect plug // return instant resource usage information func ResourceUsage() map[string]string { data := map[string]string{ - - // {'System': self.Os.name(), 'Release': self.Os.kernel_release(), + "System": runtime.GOOS, "Release": osinfo.GetKernelInfo()["Release"], + // TODO "Version": // 'Version': self.Os.distribution_version(), 'Machine': self.Os.architecture(), // 'CPU Physical Core Count': self.Hardware.Cpu.physical_core_count(), // 'Total Memory': self.Hardware.Memory.total(), @@ -35,7 +35,7 @@ func ResourceUsage() map[string]string { // return general Agent information (that changes rarely) func (p plug) AgentInfo() map[string]interface{} { data := map[string]interface{}{ - "System": runtime.GOOS, "Kernel": osinfo.GetKernelInfo()["Release"], + "System": runtime.GOOS, "Release": osinfo.GetKernelInfo()["Release"], "hostname": osinfo.GetKernelInfo()["Hostname"], "osMachine": osinfo.GetKernelInfo()["Machine"], "diskTotal": osinfo.GetDiskUsage()["total"],