P2P-Nathan / Docker-Unix-Monitoring-Management-Pack

Contains monitoring for Docker Unix
1 stars 0 forks source link

Most docker deamons not discovered #2

Open ronaldbckl opened 2 years ago

ronaldbckl commented 2 years ago

The majority of my docker servers are not discovered by this pack.

To a non discovered server (linux) i ran the winrm command: _winrm e http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/Container_HostInventory?__cimnamespace=root/cimv2 -r:https://fqdn:1270/wsman -auth:basic -skipCACheck -skipCNCheck -encoding:utf-8 -format:pretty -u:svcscom -p:"password"_

Output: _wsa:DestinationUnreachable</SOAP-ENV:Value>

The target namespace does not exist._ So it seems docker is not registered within omi but i'm not sure if this is an issue on the docker servers or in the discovery... How does it get registererd within omi?
aurel-appsthru commented 1 year ago

Hi,

As it is indicate in the ReadMe here :

https://github.com/P2P-Nathan/Docker-Unix-Monitoring-Management-Pack/tree/main/Docker.Unix.Monitoring

, you have to install the OMS Agent ( aka MMA ) in place of the SCOM agent. This agent is the Log Analytics Agent, but it is compatible with SCOM.

An alternative that I found is to only install the Docker Provider for OMI.

You can find it here :

https://github.com/microsoft/Docker-Provider/releases?q=docker-cimprov

After restarting the omi agent, you can test locally with :

/opt/omi/bin/omicli ei root/cimv2 Container_ContainerInventory

or with your winrm query :

winrm e http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/Container_ContainerInventory?__cimnamespace=root/cimv2 -r:https://HOSTNAME:1270/wsman -auth:basic -skipCACheck -skipCNCheck -encoding:utf-8 -format:pretty -u:USER -p:"PASSWORD"

It works for me. Hope it will help.