-
Returning DHCP Info using Powershell
I’m trying to learn how to create a custom module to monitor DHCP Address usage on a Windows DHCP server.
Server is 7.0NG.750(Build 201111)Here’s what I have so far:
This Powershell command returns the information:
PS C:Windowssystem32> Get-DHCPServerv4ScopeStatistics | Select-Object -Property ScopeId,Free ScopeId   Free -------   ---- 10.100.0.0  137 192.168.1.0 133
I put that into pandora_agent.conf at the bottom of the file like this:
# DHCP Stats module_begin module_name DHCPStats module_type generic_data module_exec C:WindowsSystem32WindowsPowerShellv1.0powershell.exe -Command "Get-DHCPServerv4ScopeStatistics | Select-Object -Property ScopeId,Free" module_description Show Available DHCP Addresses module_end
After saving the file and restarting the agent, nothing appears, exceptÂ
Warning: Non-initialized modules found
However, I am not finding an explanation so far on what that means or how to resolve it.
Thank you for your assistance.