Zenoss & Process Monitoring
I haven't yet figured out how to run custom commands/checks against monitored devices, but I did find the nice way Zenoss watches processes. You can define any string or regex to watch for, and Zenoss will use SNMP to find it in the process list. After the next modeling cycle, it will let you set triggers on the process to tell you if/when it restarts.To setup, just click on Processes in the left hand menu. Create sub-folders for categorizing the processes. I created entries for Web, Veritas, cfengine, etc. Then from within the target folder (if applicable), just enter a process name into the text field. You can then edit the entry by clicking on the name, then the Edit tab. Modify the regex if necessary. For instance, to monitor the different dhcpd processes, I changed it to "dhcpd3?" to make the 3 optional. Since it's an open match, this also picks up VMware Server's vmnet-dhcpd processes. if that's not what you want, you can set the regex to "^dhcpd3?". Now they're being checked, but how to you view them? Easy! Just navigate to a device, then click the OS tab. You'll now see a Processes section below the Interfaces. From here you can tailor the process check to the specific device.