Permissions to monitor servers with WMI
Posted: Wed Dec 12, 2018 11:27 am
Hi,
I've been working on setting up Nagios XI, specifically using WMI to monitor Windows servers, but I'm having some permission issues. If I put my wmiagent user in the administrator group, everything works as it would be expected since it has all the rights. I followed this document https://assets.nagios.com/downloads/nag ... ios-XI.pdf and it was still not working, I would get permission errors when trying to detect services, process ... using the wizard. I then used the sc command with the wmiagent SID to provide permission to interact with the scmanager. That fixed the issue with the wizard.
Then the services checks started to fail, it seems that wmiagent user didn't have rights to query the services. I granted permission using subinacl.exe to give the user rights to the service I was monitoring and that seems to have solved the issue.
Is there a way to simplify this and not have to go to all that to be able to monitor servers using WMI? Of course there's the administrator way, but this is not a secure way to do it.
Any help on this would be appreciated.
Thanks
I've been working on setting up Nagios XI, specifically using WMI to monitor Windows servers, but I'm having some permission issues. If I put my wmiagent user in the administrator group, everything works as it would be expected since it has all the rights. I followed this document https://assets.nagios.com/downloads/nag ... ios-XI.pdf and it was still not working, I would get permission errors when trying to detect services, process ... using the wizard. I then used the sc command with the wmiagent SID to provide permission to interact with the scmanager. That fixed the issue with the wizard.
Then the services checks started to fail, it seems that wmiagent user didn't have rights to query the services. I granted permission using subinacl.exe to give the user rights to the service I was monitoring and that seems to have solved the issue.
Is there a way to simplify this and not have to go to all that to be able to monitor servers using WMI? Of course there's the administrator way, but this is not a secure way to do it.
Any help on this would be appreciated.
Thanks