Guides‎ > ‎Common Checks‎ > ‎

Operating System

Operating System Version

NSClient++ 0.3.9 & 0.4.1 - Windows
No additional configuration is required.
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckWMI -a "Query=Select Version,Caption from win32_OperatingSystem" columnSyntax="%value%" columnSeparator=", " ignore-perf-data

Output:
Microsoft Windows Server 2008 R2 Standard , 6.1.7600


NSClient++ 0.4.3.108 onwards - Windows
No additional configuration is required.
Command:
check_nrpe -H 192.168.142.137 -t 30 -c check_wmi -a "query=Select Version,Caption from win32_OperatingSystem"

Output:
Microsoft Windows Server 2008 R2 Standard , 6.1.7600


NSClient++ 0.4.3.131 onwards - Windows
No additional configuration is required.
Command:
check_nrpe -H win2008r2-01 -c Check_OS_Version -a 'perf-config=*(ignored:true)'

Output:
OK: Windows 2008R2 (6.1.7600)|


NSClient++ 0.4.3 onwards - Linux

No additional configuration is required.
Command:
check_nrpe -H centos05 -t 30 -c Check_OS_Version -a show-all 'detail-syntax=${kernel_name} Version ${kernel_release}'

Output:
Linux Version 3.10.0-123.el7.x86_64|


SNMP

Command:
check_snmp -H ub03 -o 1.3.6.1.2.1.1.1.0 -C public -P 2c

Output (linux):
SNMP OK - "Linux ub03.box293.local 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64" |

Output (Windows x86):
SNMP OK - "Hardware: x86 Family 6 Model 63 Stepping 2 AT/AT COMPATIBLE - Software: Windows Version 6.1 (Build 7600 Multiprocessor Free)" |

Output (Windows x64):
SNMP OK - "Hardware: Intel64 Family 6 Model 63 Stepping 2 AT/AT COMPATIBLE - Software: Windows Version 6.1 (Build 7600 Multiprocessor Free)" |