#!/bin/bash

## should be placed into /etc/cron.hourly/

# locate old montool tmp directories left over from moveacct
results=$(find /home*/ -maxdepth 1 -type d -ctime +7 -name "*.montool" | wc -l)
/usr/bin/zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -k montool.moveacct.abandoned -o $results -s `hostname` 1>/dev/null 2>&1

