check_os_version

Checks the os system version.

Implementation

WindowsLinuxFreeBSDMacOSX
✅✅✅✅

Argument Defaults

ArgumentDefault Value
empty-state0 (OK)
empty-syntax
top-syntax%(status) - %(list)
ok-syntax
detail-syntax%(platform) %(version) (arch: %(arch))

Check Specific Arguments

None

Attributes

Filter Keywords

these can be used in filters and thresholds (along with the default attributes):

AttributeDescription
platformPlatform of the OS
familyOS Family
versionFull version number
archOS architecture (go arch, e.g. amd64)
osOS name
hostnamehostname (probably without FQDN)
kernel_archkernel architecture, e.g. x86_64
kernel_versionkernel version

Examples

Default Check

check_os_version
OK - Microsoft Windows 10 Pro 10.0.19045.2728 Build 19045.2728 (arch: amd64)

Example using check_snclient and Naemon

Naemon Config

define command{
    command_name         check_snclient
    command_line         $USER1$/check_snclient -k -p 'your-password' -u 'https://$HOSTADDRESS$:8443' $ARG1$ $ARG2$
}

define service {
    host_name            testhost
    service_description  check_os_version
    use                  generic-service
    check_command        check_snclient!check_os_version!
}