check_os_version
Checks the os system version.
Implementation
| Windows | Linux | FreeBSD | MacOSX |
|---|---|---|---|
| ✅ | ✅ | ✅ | ✅ |
Argument Defaults
| Argument | Default Value |
|---|---|
| empty-state | 0 (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):
| Attribute | Description |
|---|---|
| platform | Platform of the OS |
| family | OS Family |
| version | Full version number |
| arch | OS architecture (go arch, e.g. amd64) |
| os | OS name |
| hostname | hostname (probably without FQDN) |
| kernel_arch | kernel architecture, e.g. x86_64 |
| kernel_version | kernel 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!
}