You could update on notification for specified hosts and/or on a schedule (rather than on idle as in this script):