Configuration & Administration

Expand all | Collapse all

ZenOSS Core 6.2 unable to model Windows devices

  • 1.  ZenOSS Core 6.2 unable to model Windows devices

    Posted 06-07-2019 06:12 AM
    I can't seem to model windows servers:
    2019-06-07 11:10:46,832 INFO zen.ZenModeler: plugins: zenoss.winrm.CPUs, zenoss.winrm.FileSystems, zenoss.winrm.HardDisks, zenoss.winrm.Interfaces, zenoss.winrm.OperatingSystem, zenoss.winrm.Processes, zenoss.winrm.Routes, zenoss.winrm.Services, zenoss.winrm.Software
    2019-06-07 11:10:46,832 ERROR zen.PythonClient: Error in zenoss.winrm.CPUs: attempted Windows connection to non-Windows device
    2019-06-07 11:10:46,833 ERROR zen.PythonClient: Error in zenoss.winrm.FileSystems: attempted Windows connection to non-Windows device
    2019-06-07 11:10:46,833 ERROR zen.PythonClient: Error in zenoss.winrm.HardDisks: attempted Windows connection to non-Windows device
    2019-06-07 11:10:46,834 ERROR zen.PythonClient: Error in zenoss.winrm.Interfaces: attempted Windows connection to non-Windows device
    2019-06-07 11:10:46,834 ERROR zen.PythonClient: Error in zenoss.winrm.OperatingSystem: attempted Windows connection to non-Windows device
    2019-06-07 11:10:46,838 ERROR zen.PythonClient: Error in zenoss.winrm.Processes: attempted Windows connection to non-Windows device
    2019-06-07 11:10:46,838 ERROR zen.PythonClient: Error in zenoss.winrm.Routes: attempted Windows connection to non-Windows device
    2019-06-07 11:10:46,839 ERROR zen.PythonClient: Error in zenoss.winrm.Services: attempted Windows connection to non-Windows device
    2019-06-07 11:10:46,839 ERROR zen.PythonClient: Error in zenoss.winrm.Software: attempted Windows connection to non-Windows device

    The log shows only this:
    Error on 10.175.24.17: attempted Windows connection to non-Windows device 


  • 2.  RE: ZenOSS Core 6.2 unable to model Windows devices

    Posted 06-07-2019 07:15 AM
    You must have the device within the Server/Microsoft/Windows device class or in a device class that has the zPythonClass set to 'ZenPacks.zenoss.Microsoft.Windows.Device'

    ------------------------------
    jstanley
    ------------------------------



  • 3.  RE: ZenOSS Core 6.2 unable to model Windows devices

    Posted 06-10-2019 02:50 AM
    Thanks for that Jay. I moved the lot of the servers and most of the devices modeled ok but I've got one that has a reverse DNS record which is something.domain.com instead of just hostname.domain.com so it errors out:

    Server not found in Kerberos database: Attempted to get ticket for HTTP@something.domain.com. Ensure reverse DNS is correct.

    I have already set the winRMkrb5DisableRDNS to true at the /Server/Microsoft/Windows level and the result is still the same even after remodel.

    Also how do I get it to pull event logs?


    ------------------------------
    J K
    CompanyName
    ------------------------------



  • 4.  RE: ZenOSS Core 6.2 unable to model Windows devices

    Posted 06-10-2019 10:53 AM
    Make sure there is a SPN (In Windows AD) set for the name you are trying to use

    ------------------------------
    jstanley
    ------------------------------



  • 5.  RE: ZenOSS Core 6.2 unable to model Windows devices

    Posted 06-11-2019 11:00 AM
    The SPNs are set correctly when checked with setspn. I tried to delete and readd the device but it resulted in the same error.

    Is there anything I need to reset?

    ------------------------------
    J K
    CompanyName
    ------------------------------



  • 6.  RE: ZenOSS Core 6.2 unable to model Windows devices

    Posted 06-11-2019 01:26 PM
    Make sure your zWinRMServerName is set.

    I use ${here/titleOrId} and then make sure the device title is set to the FQDN.

    ------------------------------
    jstanley
    ------------------------------



  • 7.  RE: ZenOSS Core 6.2 unable to model Windows devices

    Posted 06-12-2019 09:46 AM
    Edited by J K 06-12-2019 09:57 AM
    That is in fact what I'm using and the device title is FQDN. Is there a command I can run similar to snmpwalk that will help me get a more verbose output of this step? I am suspecting some cached entry is persisting but I'm not sure how to connect and check the kerberos cache. I'm not sure which docker instance I need to attach to check this.

    EDIT: It started working without any modification - it seems like the ticket expired. Would be useful to know how to clean it out for future reference.

    The only item I've got left is the need to pull the eventlogs. How can I accomplish that?

    ------------------------------
    J K
    CompanyName
    ------------------------------



  • 8.  RE: ZenOSS Core 6.2 unable to model Windows devices

    Posted 06-18-2019 08:59 AM
    I think there is a kinit command that can be ran.. but I just restart zenpython container and it wipes out the cache.

    ------------------------------
    jstanley
    ------------------------------