I'm somewhat new to Zenoss; but for the most part I've figured it out and am quite impressed so far. I work for a web hosting company and we're looking at using this as a replacement for aging cacti/ mon.cgi monitors that we use now.

My question is this; is there some way to disable IP service monitoring for multiple hosts at once? For example, we have several machines that run SMTP but only for localhost connections. Zenoss sees that SMTP is there and automatically enables the SMTP monitoring; however, it's constantly producing error events because port 25 denies external connections. I figured out how to disable it on individual machines through the Device -> OS -> IP Services section. However, it's a huge pain in the but to have to do that on 50+ machines. Is there some way that it can be changed for a specific device group or something like that, instead of disabling the service on a per device basis? Keep in mind that we do still want it on most of the machines; so globally disabling the check isn't an option either.

We're going to move the service and process monitoring to the device hierarchy in the future, but for now it is configured either at the global or device level as you have found. However, you can script large changes like these to ease the burden.

Run zendmd as the zenoss user to enter the interactive shell. The following script could be used to set all of the smtp services within the /MyGroup group to not be monitored.

for device in dmd.Groups.MyGroup.getSubDevices():
    for port in device.os.ipservices():
        if port.name() == 'smtp':
            port.monitor = False

commit()
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to