Do you have many devices? I would do it in the following way.

Just get a listing of all devices that have performance data in the 
/$ZENHOME/perf/Devices directory with "ls" or "tree".

Save that to a file and use that file as input in zendmd. You read through that 
file and do something like this in zendmd:


Code:

import os

if find('devicename from file') == 'None':
    deleteRRD(devicename from file)

deleteRRD(devicename from file):
   os.system("find ./ -name "*.rrd" -type f -delete")





There will probably be a better way and probably there are some syntax errors 
in there but this should get you started.

Tijmen




-------------------- m2f --------------------

Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=35830#35830

-------------------- m2f --------------------



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

Reply via email to