Checking OS Version
Posted: Sun Sep 13, 2015 2:06 am
When i run command on terminal it shows perfect:
./check_nrpe -H IP_Address -t 30 -c check_wmi -a "query=Select Version,Caption from win32_OperatingSystem"
Microsoft Windows Server 2012 R2 Standard, 6.3.9600
But when i run through command definition than restart the service it shows below error:
============================================================================================================================
Checking objects...
Error: Service check command 'check_nrpe -H winserver-2012 -t 30 -c check_wmi -a "query=Select Version,Caption from win32_OperatingSystem"' specified in service 'Operating System' for host 'winserver-2012' not defined anywhere!
============================================================================================================================
command define:
============================================================================================================================
define service{
use generic-service
host_name winserver-2012
service_description Operating System
check_command check_nrpe -H winserver-2012 -t 30 -c check_wmi -a "query=Select Version,Caption from win32_OperatingSystem"
}
============================================================================================================================
./check_nrpe -H IP_Address -t 30 -c check_wmi -a "query=Select Version,Caption from win32_OperatingSystem"
Microsoft Windows Server 2012 R2 Standard, 6.3.9600
But when i run through command definition than restart the service it shows below error:
============================================================================================================================
Checking objects...
Error: Service check command 'check_nrpe -H winserver-2012 -t 30 -c check_wmi -a "query=Select Version,Caption from win32_OperatingSystem"' specified in service 'Operating System' for host 'winserver-2012' not defined anywhere!
============================================================================================================================
command define:
============================================================================================================================
define service{
use generic-service
host_name winserver-2012
service_description Operating System
check_command check_nrpe -H winserver-2012 -t 30 -c check_wmi -a "query=Select Version,Caption from win32_OperatingSystem"
}
============================================================================================================================