Skip navigation
1681 Views 7 Replies Latest reply: Jul 17, 2012 4:08 PM by Ryan Matte RSS
Matthew Kitchin (public) Rank: Green Belt 170 posts since
Nov 12, 2009
Currently Being Moderated

Jul 17, 2012 11:50 AM

Windows SNMP Service Monitor ZenPack - not working on most of my servers

I wish I could find a pattern here. I installed the Windows SNMP Service Monitor ZenPack today, and I like what I am seeing. The problem is, it isn't working on probably 2/3 of my servers. Many of these servers are identical in every way. One example is I have 10 Xenapp servers that all bootup from the same disk image using Citrix Provisioning server. These servers are literally identical. The only difference is the the name. They are in the same group in Zenoss. I'm running Zenoss 3.2.1 on CentOS 6.2 64 bit. I have let it sit all day, restarted Zenoss, rebooted the server, remodeled devices, and done everything else I can think of. I am using the zWinServiceSNMPMonitorNames option. On the servers where it is working, it is working great. The device properties on non working servers show it inherited the setting properly.

 

The log for zenwinsrvsnmp shows this every 5 minutes.

 

2012-07-16 16:28:39,584 INFO zen.ZenWinSrvSNMP: success:91 fail:0 pending:2 todo:0

2012-07-16 16:28:39,588 INFO zen.ZenWinSrvSNMP: success:92 fail:0 pending:1 todo:0

2012-07-16 16:28:39,595 INFO zen.zenwinsrvsnmp: ******** Cycle completed ********

2012-07-16 16:28:39,595 INFO zen.zenwinsrvsnmp: Sent 588 OID requests

2012-07-16 16:28:39,596 INFO zen.zenwinsrvsnmp: Queried 93 devices

2012-07-16 16:28:39,596 INFO zen.zenwinsrvsnmp:   0 in queue still unqueried

2012-07-16 16:28:39,596 INFO zen.zenwinsrvsnmp:   Successes: 93  Failures: 0  Not reporting: 0

2012-07-16 16:28:39,596 INFO zen.zenwinsrvsnmp: Waited on 0 queries from previous cycles.

2012-07-16 16:28:39,596 INFO zen.zenwinsrvsnmp:   Successes: 0  Failures: 0  Not reporting: 0

2012-07-16 16:28:39,597 INFO zen.zenwinsrvsnmp: Cycle lasted 0.33 seconds

2012-07-16 16:28:39,597 INFO zen.zenwinsrvsnmp: *********************************

2012-07-16 16:28:39,598 INFO zen.ZenWinSrvSNMP: success:93 fail:0 pending:0 todo:0

 

Any ideas? This looks like a great tool and something that could be very useful for me.

I thought there was a simple way to natively monitor services in zenoss, but I guess I was thinking of processes.

  • Ryan Matte ZenossMaster 653 posts since
    Mar 26, 2009

    It sounds like your device relations didn't get properly rebuilt when the pack was installed.  Try moving the devices that aren't working to a different class and then back in to that class.  That will force the relations to be rebuilt and it should start working fine after that.

  • Ryan Matte ZenossMaster 653 posts since
    Mar 26, 2009

    No problem.  Alternately you could run the following zendmd code to rebuild the relations...

     

    for d in dmd.Devices.getSubDevicesGen():
        print 'Rebuilding relations for %s' % (d.getDeviceName())
        d.buildRelations()
        if d.__class__ != d.deviceClass().getPythonDeviceClass():
            d.changeDeviceClass(d.getDeviceClassPath())
    


    If you want to do it for only a specific class such as /Server/Windows you'd do...

     

    for d in dmd.Devices.unrestrictedTraverse('Server/Windows').getSubDevicesGen():
        print 'Rebuilding relations for %s' % (d.getDeviceName())
        d.buildRelations()
        if d.__class__ != d.deviceClass().getPythonDeviceClass():
            d.changeDeviceClass(d.getDeviceClassPath())
    

     

    Ignore any error output that you may see while it's running.

  • Ryan Matte ZenossMaster 653 posts since
    Mar 26, 2009

    Don't do it that way, just wait for zendmd to load to the prompt and then paste the code in to it and hit enter twice.

  • Ryan Matte ZenossMaster 653 posts since
    Mar 26, 2009

    No problem, glad to hear that it's sorted out.

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points