Good Afternoon,
I am a frequnt user of Observium but the lack of WMI has started to become a really issue, so I have took the time to find a workable solution to this issue.
I have managed to get this working, not sure if this is going to help the Observium team, but anyone else is welcome to copy this implementation if they so wish.
The approach I took was to take the source code from openvas-smb and changed line 508 in lib/com/dcom/main.c to read as follows:
char *bindstr = talloc_asprintf(c, "ncacn_ip_tcp:%s[sign]", server);
I then compiled the source and copied the wmic binary generated to /usr/bin.
I maintained the original winexe binary provided by Observium in there tar.gz archive.
I am happy to upload the pre-compiled binary if Observium want me to or if they would like me to send it privately for them to test that is also something I can do.
The source code I amended and compiled is licensed under GNU Public License 2 or later and can be found at the github link below.
https://github.com/greenbone/openvas-smb
Thanks
Chris
(Just your totally ordinary autistic server nerd)
This is bot questions important for checking your issue. You can ignore question about snmpdump, but poller and discovery debug output is required.
Anyway, wmic binary is outdated for long time (we not maintain or support for it).
But in latest versions of Observium we integrate different version of WMI script, which should work also with Windows 2022.
You must update your Observium install than run requested debugs. Attach this debugs here.