Check_WMI_Plus Services
Posted: Thu Nov 30, 2017 9:22 am
Hi,
after check all possibility find on www I come here.
I have setup a nagios core, and add the plugin check_wmi_plus.
I get some strange result on the services check.
I explain : I create a user in Active Directory whose account name is "Nagios". I put this user in domain admin group and I check Domain Member server with this account. When I check :
"/usr/lib/nagios/plugins/check_wmi_plus.pl -H 172.20.16.145 -u Nagios@Domain -p Azerty0123654789 -m checkservice -a vmtools"
(password, IP and domain have been changed).
I get correct andswer. No problem.
For Windows Server which are not in Domain. I create the user Nagios on local and add it in local administrator group.
When I check :
"/usr/lib/nagios/plugins/check_wmi_plus.pl -H 172.20.16.145 -u [email protected] -p Azerty0123654789 -m checkservice -a vmtools"
I get OK - Found 0 Services(s), 0 OK and 0 with problems (0 excluded). |'Total Service Count'=0; 'Service Count OK State'=0; 'Service Count Problem State'=0; 'Excluded Service Count'=0;
Like I can't access to information.
If I modify my command and use the administror account I get a good result.
(OK - Found 1 Services(s), 1 OK and 0 with problems (0 excluded). 'VMware Tools' (VMTools) is Running.|'Total Service Count'=1; 'Service Count OK State'=1; 'Service Count Problem State'=0; 'Excluded Service Count'=0;)
It seems, there is some right on services who are setup on account Administrtaor and not on admin group.
The best exemple is on automatic services. If I check with Nagios Account I get 14 services and if I check with admin account I get 53 services....
This happen on W2K8R2 server and W2K12R2 server.
Note All perm on DCOM, WMI Class are done. The problem is on services and eventviewer.
Someone have an idea ?
Thanks
Gérald
after check all possibility find on www I come here.
I have setup a nagios core, and add the plugin check_wmi_plus.
I get some strange result on the services check.
I explain : I create a user in Active Directory whose account name is "Nagios". I put this user in domain admin group and I check Domain Member server with this account. When I check :
"/usr/lib/nagios/plugins/check_wmi_plus.pl -H 172.20.16.145 -u Nagios@Domain -p Azerty0123654789 -m checkservice -a vmtools"
(password, IP and domain have been changed).
I get correct andswer. No problem.
For Windows Server which are not in Domain. I create the user Nagios on local and add it in local administrator group.
When I check :
"/usr/lib/nagios/plugins/check_wmi_plus.pl -H 172.20.16.145 -u [email protected] -p Azerty0123654789 -m checkservice -a vmtools"
I get OK - Found 0 Services(s), 0 OK and 0 with problems (0 excluded). |'Total Service Count'=0; 'Service Count OK State'=0; 'Service Count Problem State'=0; 'Excluded Service Count'=0;
Like I can't access to information.
If I modify my command and use the administror account I get a good result.
(OK - Found 1 Services(s), 1 OK and 0 with problems (0 excluded). 'VMware Tools' (VMTools) is Running.|'Total Service Count'=1; 'Service Count OK State'=1; 'Service Count Problem State'=0; 'Excluded Service Count'=0;)
It seems, there is some right on services who are setup on account Administrtaor and not on admin group.
The best exemple is on automatic services. If I check with Nagios Account I get 14 services and if I check with admin account I get 53 services....
This happen on W2K8R2 server and W2K12R2 server.
Note All perm on DCOM, WMI Class are done. The problem is on services and eventviewer.
Someone have an idea ?
Thanks
Gérald