VMware vSphere

 View Only
  • 1.  Auto discover software RAID devices

    Posted Mar 29, 2008 03:01 AM
    I have written a plugin to monitor software raid devices in Linux (/dev/md0, etc.). It will track availability (ok, warning, critical), as well as metrics such as rebuild percentage, failed devices, etc. The plugin itself uses a fairly simple perl script, parsing the output of mdadm --detail <device>. As it stands, I can manually add a platform service for "Linux Software RAID Device" for each device, and when I add more than one, an auto-group is created. This all works as I want it to, indicators show up, etc.

    However, I need help with the auto-discovery / auto-inventory. I can't grasp how this part works, and am not sure which document explains it easily. My goal is that as long as the plugin is installed, the next time auto-discovery runs on an agent, auto-inventory will detect all software raid devices so I can easily "Add to inventory" from the dashboard.

    Is there a similar example that could help?

    BTW, I suppose this could be modeled as a SW RAID server + SW RAID DEVICE services, but I see it more as a platform service. Any thoughts on this?


  • 2.  RE: Auto discover software RAID devices

    Posted Mar 31, 2008 11:52 PM
    I guess the more general question is, how do I auto-discover platform services?

    Should I add to the "system" plugin? Or should I extend ServerDetector and implement AutoServerDetector. In this case, what do I do with getServerResources...i.e., is there a special "Platform" type for server.setType()? How about for server.setName()?