diff --git a/docs/_index.md b/docs/_index.md index 70fd7725..b0015364 100644 --- a/docs/_index.md +++ b/docs/_index.md @@ -3,13 +3,13 @@ title: SNClient linkTitle: SNClient weight: 400 tags: - - nsclient - snclient + - nsclient - naemon - prometheus - windows - linux - - osx + - macos --- [![CICD Pipeline](https://github.com/Consol-Monitoring/snclient/actions/workflows/builds.yml/badge.svg?branch=main)](https://github.com/Consol-Monitoring/snclient/actions/workflows/builds.yml) diff --git a/docs/checks/commands/check_index.md b/docs/checks/commands/check_index.md index c99833d2..fff80934 100644 --- a/docs/checks/commands/check_index.md +++ b/docs/checks/commands/check_index.md @@ -43,7 +43,8 @@ these can be used in filters and thresholds (along with the default attributes): | implemented | check is available on current platform: 0 / 1 | | windows | check is available on Windows: 0 / 1 | | linux | check is available on Linux: 0 / 1 | -| osx | check is available on macOS: 0 / 1 | +| macos | check is available on macOS: 0 / 1 | +| osx | alias for macos: 0 / 1 | | freebsd | check is available on FreeBSD: 0 / 1 | | alias | check is an alias: 0 / 1 | | script | check is a (wrapped) script: 0 / 1 | diff --git a/docs/prometheus/node.md b/docs/prometheus/node.md index 63b2e307..76e03fae 100644 --- a/docs/prometheus/node.md +++ b/docs/prometheus/node.md @@ -6,7 +6,7 @@ weight: 340 tags: - prometheus - linux - - osx + - macos - node_exporter - exporter --- diff --git a/pkg/snclient/check_index.go b/pkg/snclient/check_index.go index 2799976f..9a3e5db7 100644 --- a/pkg/snclient/check_index.go +++ b/pkg/snclient/check_index.go @@ -35,7 +35,8 @@ func (l *CheckIndex) Build() *CheckData { {name: "implemented", description: "check is available on current platform: 0 / 1"}, {name: "windows", description: "check is available on Windows: 0 / 1"}, {name: "linux", description: "check is available on Linux: 0 / 1"}, - {name: "osx", description: "check is available on macOS: 0 / 1"}, + {name: "macos", description: "check is available on macOS: 0 / 1"}, + {name: "osx", description: "alias for macos: 0 / 1"}, {name: "freebsd", description: "check is available on FreeBSD: 0 / 1"}, {name: "alias", description: "check is an alias: 0 / 1"}, {name: "script", description: "check is a (wrapped) script: 0 / 1"}, @@ -73,7 +74,7 @@ func (l *CheckIndex) Check(_ context.Context, snc *Agent, check *CheckData, _ [] "implemented": "0", "windows": "0", "linux": "0", - "osx": "0", + "macos": "0", "freebsd": "0", "alias": "0", "script": "0", @@ -95,10 +96,11 @@ func (l *CheckIndex) Check(_ context.Context, snc *Agent, check *CheckData, _ [] entry["implemented"] = bool2Str[chk.isImplemented(runtime.GOOS)] entry["windows"] = bool2Str[chk.isImplemented("windows")] entry["linux"] = bool2Str[chk.isImplemented("linux")] - entry["osx"] = bool2Str[chk.isImplemented("darwin")] + entry["macos"] = bool2Str[chk.isImplemented("darwin")] entry["freebsd"] = bool2Str[chk.isImplemented("freebsd")] } + entry["osx"] = entry["macos"] check.listData = append(check.listData, entry) } diff --git a/pkg/snclient/check_ntp_offset.go b/pkg/snclient/check_ntp_offset.go index 444b30ea..5e725a62 100644 --- a/pkg/snclient/check_ntp_offset.go +++ b/pkg/snclient/check_ntp_offset.go @@ -464,7 +464,7 @@ func (l *CheckNTPOffset) addOSX(ctx context.Context, check *CheckData, force boo return fmt.Errorf("this is a macOS command") } - entry := l.defaultEntry("osx") + entry := l.defaultEntry("macos") reBrackets := regexp.MustCompile(`\((.*)\)\s*$`) output, server, err := l.getOSXData(ctx)