Using Wmic to monitore W2k12
Posted: Mon Apr 20, 2015 10:06 am
Hi,
I have a Cluster of Files Server under win2012. It is setup as Actif/Actif.
I wanna monitore it with my Nagios.
I add wmic binary file to check wmi.
All is good for example :
- wmic -U 'Domain\admin'%password --namespace='Root\cimv2' //192.168.174.230 "select * from win32_process"
=> Good result.
But if I wanna check root\MSCLUSTER I get error :
- wmic -U 'Domain\admin'%password --namespace='Root\MSCluster' //192.168.174.230 "select * from MSCluster"
[wmi/wmic.c:212:main()] ERROR: Retrieve result data.
NTSTATUS: NT code 0x80041010 - NT code 0x80041010
I find out where my error comes : it is becouse the Namespace root\mscluster need pktprivacy to by chech in remote access.
The problem is how to use pktprivacy with wmic ? I try with option
--use-security-mechanisms=Pktprivacy but is doesn't work.
Other solution : how disable the pktprivacy for the namespace ?
Thanks for your help
Gérald
I have a Cluster of Files Server under win2012. It is setup as Actif/Actif.
I wanna monitore it with my Nagios.
I add wmic binary file to check wmi.
All is good for example :
- wmic -U 'Domain\admin'%password --namespace='Root\cimv2' //192.168.174.230 "select * from win32_process"
=> Good result.
But if I wanna check root\MSCLUSTER I get error :
- wmic -U 'Domain\admin'%password --namespace='Root\MSCluster' //192.168.174.230 "select * from MSCluster"
[wmi/wmic.c:212:main()] ERROR: Retrieve result data.
NTSTATUS: NT code 0x80041010 - NT code 0x80041010
I find out where my error comes : it is becouse the Namespace root\mscluster need pktprivacy to by chech in remote access.
The problem is how to use pktprivacy with wmic ? I try with option
--use-security-mechanisms=Pktprivacy but is doesn't work.
Other solution : how disable the pktprivacy for the namespace ?
Thanks for your help
Gérald